Creating Dialog Classes in

Posted on 2007-07-31
Last Modified: 2013-11-26
in VC 6.0, we had the class wizard, which was a snap to use for associating dialog resources to a class.  The class template was created for you, and you could associate the dialog's various controls with variables very quickly.

In (2005), is there some equivalent, or do I need to create (type) out each dialog class completely from scratch, and then create the control variables from scratch, etc.??

I've heard about using C# to create the dialogs and controls, and then porting to C++, but I don't want to do this.

Thanks, ahead of time.
Question by:clintonJ
    1 Comment
    LVL 22

    Accepted Solution

    There is No class wizard as such in VC2005 as you have seen in VC6...Functionality is scattered...

    Have a look at detailed explanation :

    For control events: Right click on the control in the dialog editor, pick Add Event Handler.

    For all possible events: Select the class in class view.  Right click and pick Properties.  Now review all the buttons at the top of the Properties window.  It lists messages, controls, virtual functions, etc. Click the one you want to add.

    e.g you want to add handler for WM_CTLCOLOR OnCtlColor
    Properties->Messages->WM_CTLCOLOR select at right OnCtlColor


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now