How to resize the MDI child window at startup
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I would like to be able to resize the MDI before start up, I mean, i want to make it really small, How can I resize it in my code? Ehsan Behboudi
The simplest solution I can think of:
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.y = my.y;
cs.x = my.x;
cs.cx = my.cx;
cx.cy = my.cy;
if( !CNewMDIChildWnd::PreCreateWindow(cs) )
return FALSE;return TRUE;
}
INTP