Discussion:
Resize SDI app to specified client size
(too old to reply)
John Lutz
2007-03-14 12:46:02 UTC
Permalink
How do I resize my SDI app so that the view window has a certain client size?
I want to set the client area to 320x240 to make it look like a pocket PC.

John
Scott McPhillips [MVP]
2007-03-15 00:40:15 UTC
Permalink
Post by John Lutz
How do I resize my SDI app so that the view window has a certain client size?
I want to set the client area to 320x240 to make it look like a pocket PC.
John
In the view's OnInitialUpdate set the desired view size (MoveWindow or
SetWindowPos) and then do this:

ResizeParentToFit(FALSE);
ResizeParentToFit(TRUE);
--
Scott McPhillips [VC++ MVP]
Loading...