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. OnFileNew

OnFileNew

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

    Hello, Whenever the application's InitInstance is executed, what is the best way of preventing the OnFileNew method from being called without removing the command line parser? Is this possible to do without recurring to the use of flag variables?

    B M 2 Replies Last reply
    0
    • 0 0v3rloader

      Hello, Whenever the application's InitInstance is executed, what is the best way of preventing the OnFileNew method from being called without removing the command line parser? Is this possible to do without recurring to the use of flag variables?

      B Offline
      B Offline
      BlackDice
      wrote on last edited by
      #2

      isn't OnFileNew() a function of the CView or its derived class? I'm not sure, but can't you just override in your derived class and not call the base class's function? Who are all these people and what are they doing in my house?...Me in 30 years, inside a grocery store My articles[^] bdiamond :zzz:

      1 Reply Last reply
      0
      • 0 0v3rloader

        Hello, Whenever the application's InitInstance is executed, what is the best way of preventing the OnFileNew method from being called without removing the command line parser? Is this possible to do without recurring to the use of flag variables?

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        you could use CCommandLineInfo::FileNothing as a parameter to ParseCommandLine


        Maximilien Lincourt Your Head A Splode - Strong Bad

        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