Board index » Visual Studio » Dialog box size
|
RAM66
|
|
RAM66
|
Dialog box size
Visual Studio124
Is it possible to set the dialog box size in pixels regardless of screen resolution? If so, how? Thanks - |
| Scott
Registered User |
Sun Feb 17 13:06:22 CST 2008
Re:Dialog box size
"Kahlua" <kahlua@right.here>wrote in message
QuoteIs it possible to set the dialog box size in pixels regardless of screen You can size a dialog box in pixels at run time by calling MoveWindow. You cannot size it in pixels at design time. -- Scott McPhillips [VC++ MVP] - |
| Joseph
Registered User |
Sun Feb 17 16:06:14 CST 2008
Re:Dialog box size
In OnInitDialog, you can use SetWindowPos to change just the size. However, you must be
careful that this has not caused controls to be clipped because they have coordinates in excess of the size you specified. joe On Sun, 17 Feb 2008 17:42:45 GMT, "Kahlua" <kahlua@right.here>wrote: QuoteIs it possible to set the dialog box size in pixels regardless of screen Web: www.flounder.com">www.flounder.com MVP Tips: www.flounder.com/mvp_tips.htm">www.flounder.com/mvp_tips.htm - |
