How to maximize a child window in a MDI project
-
Hello, I don't know how to get my child window maximized when my app starts! Need help!!! Thanks!:(
-
Hello, I don't know how to get my child window maximized when my app starts! Need help!!! Thanks!:(
overwite the function ActivateFrame in your derived CMDIChildWnd class. usually it is called CChildFrame... implement it like this: void CChildFrame::ActivateFrame(int nCmdShow) { // TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen nCmdShow = SW_SHOWMAXIMIZED; CMDIChildWnd::ActivateFrame(nCmdShow); }
-
Hello, I don't know how to get my child window maximized when my app starts! Need help!!! Thanks!:(
Add a handler for WM_CREATE in CChildFrame and there ShowWindow(SW_MAXIMIZE);
-
overwite the function ActivateFrame in your derived CMDIChildWnd class. usually it is called CChildFrame... implement it like this: void CChildFrame::ActivateFrame(int nCmdShow) { // TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen nCmdShow = SW_SHOWMAXIMIZED; CMDIChildWnd::ActivateFrame(nCmdShow); }
Thank you!! It did the trick! See ya!