|
-
May 23rd, 1999, 05:35 AM
#1
Prevention of startup MDI child
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
-
May 23rd, 1999, 08:50 AM
#2
Re: Prevention of startup MDI child
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
-
May 23rd, 1999, 07:59 PM
#3
Re: Prevention of startup MDI child
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|