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

    How can i create new document without first view?



    How can i create new document without first view?(in MDI mode)

  2. #2
    Join Date
    Apr 1999
    Posts
    191

    Is this what you mean?



    Do you mean you want to get rid of the empty document that comes up when you first start your MDI app? If yes, then insert this between ParseCommandLine() and ProcessShellCommand() in your InitInstance():


    //

    // The mfc wizard causes the application to open a new

    // document at startup. We don't want this behavior.

    //

    if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)

    cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;




  3. #3
    Join Date
    Apr 1999
    Posts
    6

    Re: Is this what you mean?



    and if it is a document created but without a view, try debugging the OnFileNew function by stepping into it, you'll find how.

  4. #4
    Join Date
    Apr 1999
    Posts
    18

    Re: Is this what you mean?



    Thank you!

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