Click to See Complete Forum and Search --> : Maximize MDI views?


April 26th, 1999, 02:36 PM
I have my app starting up maximized. How do I maximize the documents in the mdi?
Thanks

Allen Y
April 26th, 1999, 03:41 PM
In your ChildFrame class, change the window's style.

BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style |= WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;

return CMDIChildWnd::PreCreateWindow(cs);
}



Allen