CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    45

    Disable first window in MDI app.



    When I run my MDI application, an empty window opens. How do I prevent this from happening?

    Thanks,

    Sean.

  2. #2
    Join Date
    Apr 1999
    Posts
    32

    Re: Disable first window in MDI app.



    In your application's InitInstance add the following line:



    CCommandLineInfo cmdInfo;


    cmdInfo.m_nShellCommand = cmdInfo.FileNothing;


    ParseCommandLine(cmdInfo);



    This will turn off the "File New" that is the defauilt for initialised CCommandLineInfo objects.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured