How to: Access ClassWizard and WizardBar Functionality
In previous versions of Visual C++, ClassWizard and WizardBar helped you develop your MFC application. ClassWizard and WizardBar were removed in Visual C++ .NET 2002. This topic discusses where ClassWizard and WizardBar functionality can be accessed in Visual C++.
To add a new class
- In Class View or Solution Explorer, right-click the project node. On the shortcut menu, click Add and then click Add Class.
To add a function to a class
- In Class View, right-click the class. On the shortcut menu, click Add and then click Add Function.
To go to a definition
Use the Navigation Bar, which is at the top of the text editor window. You can turn the Navigation Bar off from the General tab of the C/C++ folder, which is in the Text Editor folder of the Options dialog box (Tools menu).
You can also use the Object Browser. See Searching for Symbols: Objects, Definitions and References for more information.
For more information about wizards that add code to a project, see Adding Functionality with Code Wizards.
To add a member variable
In Class View, right-click the class to which you want to add a member variable. On the shortcut menu, click Add and then click Add Variable.
For more information, see Adding a Member Variable.
To add a handler for a message
To add methods and properties to automation interfaces
In Class View, right-click an interface that supports automation. On the shortcut menu, click Add and then click Add Method or Add Property.
To add ActiveX events
In Class View for an ActiveX control project, right-click the class to which you want to add an event. On the shortcut menu, click Add and then click Add Event.
For more information, see Adding an Event.
To add a handler (function) for a user-interface item
Select the item in Resource View. For example, select a button. Press F4 to open the Properties window and click the ControlEvents button. Select a message in the left column and click Add from the right column. The function will appear in Class View.
For more information, see Adding an MFC Message Handler.