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. Visual Studio
  4. What happened to OnInitDialog?

What happened to OnInitDialog?

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiocomhelpquestion
5 Posts 3 Posters 12 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
    Member 96
    wrote on last edited by
    #1

    In VS6 you used to be able to use Classwizard to quickly override OnInitDialog and add your own code for a standard dialog box you add to a project. In VS.NET when you go into the resource view, click on the properties of a standard (CDialog) dialog there is no WM_INITDIALOG message to handle. It does work if you insert it manually, but it was so much quicker before. Is this a bug or a change for MFC7 or....? Ground Zero Tech-Works http://www.ayanova.com

    N 1 Reply Last reply
    0
    • M Member 96

      In VS6 you used to be able to use Classwizard to quickly override OnInitDialog and add your own code for a standard dialog box you add to a project. In VS.NET when you go into the resource view, click on the properties of a standard (CDialog) dialog there is no WM_INITDIALOG message to handle. It does work if you insert it manually, but it was so much quicker before. Is this a bug or a change for MFC7 or....? Ground Zero Tech-Works http://www.ayanova.com

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      J Cardinal wrote: or a change for MFC7 or....? Heheh. MFC hasn't changed that much. OnInitDialog is still there. It's just that they have removed the class-wizard :-)


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      M 1 Reply Last reply
      0
      • N Nish Nishant

        J Cardinal wrote: or a change for MFC7 or....? Heheh. MFC hasn't changed that much. OnInitDialog is still there. It's just that they have removed the class-wizard :-)


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        M Offline
        M Offline
        Member 96
        wrote on last edited by
        #3

        Heh heh, yes after writing several thousand lines of code on the "new" vs.net I'm pretty clear on there being no class wizard! What *is* missing is that particular message in the message list of messages that you can handle in the properties page for the dialog in the resource view (as I stated in my message). Oh well, I guess I'm the only one that missed it. Ground Zero Tech-Works http://www.ayanova.com

        M 1 Reply Last reply
        0
        • M Member 96

          Heh heh, yes after writing several thousand lines of code on the "new" vs.net I'm pretty clear on there being no class wizard! What *is* missing is that particular message in the message list of messages that you can handle in the properties page for the dialog in the resource view (as I stated in my message). Oh well, I guess I'm the only one that missed it. Ground Zero Tech-Works http://www.ayanova.com

          M Offline
          M Offline
          Martin Haesemeyer
          wrote on last edited by
          #4

          It's on the ovveride tab and not on the message tab of the properties window (don't know how exactly it is named in the english version). Cheers Martin "Situation normal - all fu***d up" Illuminatus!

          M 1 Reply Last reply
          0
          • M Martin Haesemeyer

            It's on the ovveride tab and not on the message tab of the properties window (don't know how exactly it is named in the english version). Cheers Martin "Situation normal - all fu***d up" Illuminatus!

            M Offline
            M Offline
            Member 96
            wrote on last edited by
            #5

            Ahhh...that makes sense now that I think about it! Thank you Cheers! Ground Zero Tech-Works http://www.ayanova.com

            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