rafiki
May 23rd, 1999, 05:35 AM
How can i prevent a creation of first startup MDI child window.
or to add some code before creation of this child window.
Thanx alot
or to add some code before creation of this child window.
Thanx alot
|
Click to See Complete Forum and Search --> : Prevention of startup MDI child rafiki May 23rd, 1999, 05:35 AM How can i prevent a creation of first startup MDI child window. or to add some code before creation of this child window. Thanx alot Simon Rose May 23rd, 1999, 08:50 AM Hey, You could add the following code in your application classes OnInitInstance overide, just before ProcessShellCommand: if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew) cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; This will determine if your app is starting with the new flag on the command line (default if you just start the app) and set the action to nothing. This should do what you want. Hope this helps, Simon windcolor May 23rd, 1999, 07:59 PM you can even delete the lines in InitInstance() // CCommandLineInfo cmdInfo; // ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line // if (!ProcessShellCommand(cmdInfo)) // return FALSE; I was gone with my broken heart. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |