What happened to OnInitDialog?
-
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
-
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
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]
-
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]
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
-
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
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!
-
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!
Ahhh...that makes sense now that I think about it! Thank you Cheers! Ground Zero Tech-Works http://www.ayanova.com