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. MDI aplication

MDI aplication

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 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.
  • O Offline
    O Offline
    Orbital
    wrote on last edited by
    #1

    Hi! I'm creting a MDI aplication and I don't want that when I start the aplication a document to be created automaticaly. Any ideas?:confused: Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...

    O R 2 Replies Last reply
    0
    • O Orbital

      Hi! I'm creting a MDI aplication and I don't want that when I start the aplication a document to be created automaticaly. Any ideas?:confused: Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...

      O Offline
      O Offline
      Orbital
      wrote on last edited by
      #2

      The answer is : // DON'T display a new MDI child window during startup!!! cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; ;P Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...

      1 Reply Last reply
      0
      • O Orbital

        Hi! I'm creting a MDI aplication and I don't want that when I start the aplication a document to be created automaticaly. Any ideas?:confused: Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...

        R Offline
        R Offline
        Roger Allen
        wrote on last edited by
        #3

        Put this code at the end of you InitInstance for your app

        // stop a new document being created if just run normally
        if (cmdInfo.m\_nShellCommand == CCommandLineInfo::FileNew)
        	cmdInfo.m\_nShellCommand = CCommandLineInfo::FileNothing ;
        

        Just before the call to ProcessShellCommand Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

        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