Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help with MDI

Help with MDI

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MFC is the Best
    wrote on last edited by
    #1

    hello! i make a vc++ programm with a mdi. everytime, when i start the programm a empty document is open. what must i change, that the empty document is not there at the beginning? thanks MFC is the best

    T 1 Reply Last reply
    0
    • M MFC is the Best

      hello! i make a vc++ programm with a mdi. everytime, when i start the programm a empty document is open. what must i change, that the empty document is not there at the beginning? thanks MFC is the best

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Add the following in CYourApp::InitInstance.

      ...
      CCommandLineInfo cmdInfo;
      ParseCommandLine(cmdInfo);
      if (CCommandLineInfo::FileNew == cmdInfo.m_nShellCommand)
      {
      cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
      }

      ...

      Tomasz Sowinski -- http://www.shooltz.com

      *** Vodka. Connecting people. ***

      M 2 Replies Last reply
      0
      • T Tomasz Sowinski

        Add the following in CYourApp::InitInstance.

        ...
        CCommandLineInfo cmdInfo;
        ParseCommandLine(cmdInfo);
        if (CCommandLineInfo::FileNew == cmdInfo.m_nShellCommand)
        {
        cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
        }

        ...

        Tomasz Sowinski -- http://www.shooltz.com

        *** Vodka. Connecting people. ***

        M Offline
        M Offline
        MFC is the Best
        wrote on last edited by
        #3

        i'm sorry, it does not fold. it with you folded? what can be the mistake?

        1 Reply Last reply
        0
        • T Tomasz Sowinski

          Add the following in CYourApp::InitInstance.

          ...
          CCommandLineInfo cmdInfo;
          ParseCommandLine(cmdInfo);
          if (CCommandLineInfo::FileNew == cmdInfo.m_nShellCommand)
          {
          cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
          }

          ...

          Tomasz Sowinski -- http://www.shooltz.com

          *** Vodka. Connecting people. ***

          M Offline
          M Offline
          MFC is the Best
          wrote on last edited by
          #4

          everything is okay.....found the mistake, thany you :rose::rose::rose:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups