Click to See Complete Forum and Search --> : Some C++.Net Qs


mwilliamson
December 26th, 2002, 08:53 PM
I just got c++.net and I have a few questions about it. I'm used to vc6 / mfc, and I find vs7 more work to use. Is there any way to get the class wizard back? Adding control variables and overriding functions is soooo much more work now? There must be something I'm missing, or we are going backwards. Also, I can't get PreSubclassWindow to be called anymore... possibly because I copied the defination wrong from the help files. Also my control variables no longer have a value in OnInitDialog, so I can't fill a combo box or list control anymore.

Am I doing something wrong... or is there a new way to do this or what?

I find these pop-up side bar windows to be a bit buggy too, many times the properties window won't pop out and I have to restart the application.

Thanks for answering my newbie questions!

dziadek_lesny
December 29th, 2002, 09:00 AM
To override dialog's OnInitDialog function You have to right-click on dialog's class name in ClassView and choose Properties. Then in properties window click the HotButton with a little box on it ("Overrides"). There You can find OnInitDialog function. All You have to do then is to left-click on the field that is right to the function's name and expand the little ComboBox and choose <Add>. That's all about overriding OnInitDialog.

mwilliamson
December 29th, 2002, 09:23 AM
Thanks buddy!