CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Some C++.Net Qs

  1. #1
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    2,236

    Some C++.Net Qs

    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!

  2. #2
    Join Date
    Nov 2002
    Location
    Poland
    Posts
    27
    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.

  3. #3
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    2,236
    Thanks buddy!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured