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. MFC MDI default Child Frame creation

MFC MDI default Child Frame creation

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
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.
  • A Offline
    A Offline
    Abebe
    wrote on last edited by
    #1

    I have created a simple MFC MDI application using the MFC application wizard and apparently it creates a child window when I start the application. The application I'm writing ONLY provides the possibility to open certain files. This means that I do NOT want a child window when i start the application. Is there some way i can avoid this 'default' behaviour, without having to create child windows myself (through 'Create' or 'LoadFrame')? Any help will be greatly appreciated. Er zit een korstje op mijn aars.

    T 1 Reply Last reply
    0
    • A Abebe

      I have created a simple MFC MDI application using the MFC application wizard and apparently it creates a child window when I start the application. The application I'm writing ONLY provides the possibility to open certain files. This means that I do NOT want a child window when i start the application. Is there some way i can avoid this 'default' behaviour, without having to create child windows myself (through 'Create' or 'LoadFrame')? Any help will be greatly appreciated. Er zit een korstje op mijn aars.

      T Offline
      T Offline
      TMaxwell86
      wrote on last edited by
      #2

      I wish you luck, because I have the same problems... The text books I have don't take me far enough into the nuts and bolts of what I really want to do. I will keep my eye on this thread Thomas

      A 1 Reply Last reply
      0
      • T TMaxwell86

        I wish you luck, because I have the same problems... The text books I have don't take me far enough into the nuts and bolts of what I really want to do. I will keep my eye on this thread Thomas

        A Offline
        A Offline
        Abebe
        wrote on last edited by
        #3

        Well....i found the reason for this behaviour. The 'CCommandLineInfo' class, which is commonly created in the 'InitInstance' of the 'CWinApp' derived class, contains a 'CCommandLineInfo::FileNew' command by default. You can prevent a child frame from being created by assigning a 'FileNothing' command to the 'm_nShellCommand' attribute: CCommandLineInfo cmdInfo; cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; ParseCommandLine(cmdInfo); Er zit een korstje op mijn aars.

        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