Board index » Visual Studio » Dialog box size

Dialog box size

Visual Studio124
Is it possible to set the dialog box size in pixels regardless of screen

resolution?

If so, how?

Thanks


-
 

Re:Dialog box size

"Kahlua" <kahlua@right.here>wrote in message

Quote
Is it possible to set the dialog box size in pixels regardless of screen

resolution?

If so, how?

Thanks





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]



-

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:



Quote
Is it possible to set the dialog box size in pixels regardless of screen

resolution?

If so, how?

Thanks



Joseph M. Newcomer [MVP]

email: newcomer@flounder.com

Web: www.flounder.com">www.flounder.com

MVP Tips: www.flounder.com/mvp_tips.htm">www.flounder.com/mvp_tips.htm

-