Resolution for Dialog
-
Hi, I make one dialog with pos as follow SetWindowPos(&CWnd::wndBottom,0,80,350,900,SWP_SHOWWINDOW); But when i changed the resolution to 800x600,half of dialog get hided. How can i avoid that? I want in all resolution the dialog should display in same size.
Anu
-
Hi, I make one dialog with pos as follow SetWindowPos(&CWnd::wndBottom,0,80,350,900,SWP_SHOWWINDOW); But when i changed the resolution to 800x600,half of dialog get hided. How can i avoid that? I want in all resolution the dialog should display in same size.
Anu
You can handle WM_DISPLAYCHANGE message in your application and call SetWindowPos(...) to readjust the size.
-
Hi, I make one dialog with pos as follow SetWindowPos(&CWnd::wndBottom,0,80,350,900,SWP_SHOWWINDOW); But when i changed the resolution to 800x600,half of dialog get hided. How can i avoid that? I want in all resolution the dialog should display in same size.
Anu
Anu_Bala wrote:
SetWindowPos(&CWnd::wndBottom,0,80,350,900,SWP_SHOWWINDOW); But when i changed the resolution to 800x600,half of dialog get hided [...] I want in all resolution the dialog should display in same size.
Well, you can't have a 900 pixel high window in a 600 pixel high desktop. :confused: Cheers, M
Webchat in Europe :java: (only 4K)
-
Hi, I make one dialog with pos as follow SetWindowPos(&CWnd::wndBottom,0,80,350,900,SWP_SHOWWINDOW); But when i changed the resolution to 800x600,half of dialog get hided. How can i avoid that? I want in all resolution the dialog should display in same size.
Anu
-
Hi, I make one dialog with pos as follow SetWindowPos(&CWnd::wndBottom,0,80,350,900,SWP_SHOWWINDOW); But when i changed the resolution to 800x600,half of dialog get hided. How can i avoid that? I want in all resolution the dialog should display in same size.
Anu