Window MDI problem
-
When I start my mdi application a new document always appears without pressing the new tab. Does anyone know how can I prevent this from happening? Furthermore how can I make the application start in a maximized window?? :confused: Thanks.!
-
When I start my mdi application a new document always appears without pressing the new tab. Does anyone know how can I prevent this from happening? Furthermore how can I make the application start in a maximized window?? :confused: Thanks.!
1°) Question In the InitInstance(): .... // Parse command line for standard shell commands, DDE, file open CCommandLine cmdInfo; ParseCommandLine(cmdInfo); ...... ..... // DON'T display a new MDI child window during startup!!! cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; /// This is 2°) Question In the InitInstance(): Replace the line pMainFrame->ShowWindow(m_nCmdShow); with pMainFrame->ShowWindow(SW_SHOWMAXIMIZED); :) Too many plans make the health badly!!
-
1°) Question In the InitInstance(): .... // Parse command line for standard shell commands, DDE, file open CCommandLine cmdInfo; ParseCommandLine(cmdInfo); ...... ..... // DON'T display a new MDI child window during startup!!! cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; /// This is 2°) Question In the InitInstance(): Replace the line pMainFrame->ShowWindow(m_nCmdShow); with pMainFrame->ShowWindow(SW_SHOWMAXIMIZED); :) Too many plans make the health badly!!
Thanks very much :)