Initial SDI dimension
"yarp" <lac-3QW3q7+2X3hWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
I was a bit surprised today while updating a SDI window with a Form view that the SDI didn't auto adjust to fit the Form dimension (I enlarged the Form a bit).
Is it me or is it standard WTL behavior ? I am not sure I used WTL wizard to create the SDI.
In order to bypass this I set the Window dimension in the MainFrame OnCreate:
CRect rcWnd;
GetWindowRect(rcWnd);
CRect rcCli;
GetClientRect(rcCli);
RECT rcForm;
::GetClientRect(m_hWndClient, &rcForm);
rcWnd.right += (rcForm.right-rcForm.left-rcCli.Width());
SetWindowPos(NULL, &rcWnd, SWP_NOZORDER|SWP_NOMOVE|SWP_NOACTIVATE);
Yarp
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/