   Checkbox does not work
  HelloI'am new to DirectX und DXUT i have read the CustomUI Sample but i have one Problem:See Picture:On the Picture is a Checkbox and a Rectangle arround the Checkbox that means when i click on the checkbox are nothing happen but when i click in the area of the second Rectangle (See on Picture the red one ) the checkbox are cheked/uncheked.So i hope now can everyone can understand my Problem.I hope anyone can help me =)btw. Sry for my real bad english... First Post[Edited by - Razorin on April 10, 2010 9:14:17 AM]
  Read  faq in top-right corner :)Is quite hard understand the problem from this image.   ;  i have updated my Question and thx for the Tipp whith the FAQ.   ;  The problem is not with the image you posted, but with the code you didn't post.   ;  CDXUTDialog  g_HUD;CDXUTDialogResourceManager  g_DialogResourceManager;g_HUD.SetLocation(0,0);g_DialogResourceManager.OnD3D9CreateDevice(d3ddev);g_HUD.Init( &g_DialogResourceManager,true,L"Textures.dds");g_HUD.AddCheckBox(14,L"Checkbox",300,300,350,24, false,L'C',false );//...To Renderg_HUD.OnRender(1);//...In the CALLBACK WindowProc Functiong_HUD.MsgProc( hWnd, message, wParam, lParam );   ;  Your window's client area is probably different size to the backbuffer. D3D will automatically scale the backbuffer to fit, but the mouse messages are passing co-ordinates in window client co-ordinates. The difference between your checkbox and the actual active rectangle looks about the height of the window's title bar.You need to either:a) create your window then get the client area with GetClientRect(), then set up your backbuffer to be the same size.b) use AdjustWindowRect() to create your window with the desired client rectangle size.   ;  thanks for your reply i have at moment some AccesViolation and NullReffernce Errors i will look for a Solution tomorrow.   