Hi,
I was wondering if anybody knew how to maximize a child window when it is first created in an MDI application. Thanks
Amish
Hi,
I was wondering if anybody knew how to maximize a child window when it is first created in an MDI application. Thanks
Amish
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Thanks for your reply.Originally Posted by Ken Fitlike
It seems that you can use SendMessage to do that but in which function should I call SendMessage so that everytime a new child window is created, it is maximised. My current MainFrame.cpp only has OnCreate() and PreCreateWindow() functions. Thanks for your time,
Amish
Found it:
Makes life easyCode:void CChildFrame::ActivateFrame(int nCmdShow) { // Create the child frame window maximized nCmdShow = SW_MAXIMIZE; CMDIChildWnd::ActivateFrame(nCmdShow); }
Amish