|
-
July 1st, 2002, 12:42 PM
#1
Where is a Class Wizard?
I need to map member variables and messages in classes. Where is a class wizard in VC 7.0 .NET? I need something similar to VC 6.0 (called with ctrl-w).
-
July 3rd, 2002, 11:15 AM
#2
From the help files:
Visual C++ Concepts: Porting and Upgrading
Where Are ClassWizard and WizardBar in Visual C++ .NET?See Also
Changes in MFC Versions
In previous versions of Visual C++, ClassWizard and WizardBar helped you develop your MFC application. ClassWizard and WizardBar have been removed in Visual C++ .NET. This topic discusses where ClassWizard and WizardBar functionality can be accessed in Visual C++.
WizardBar
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.
ClassWizard
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
See Mapping Messages to Functions.
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.
For more information, see Adding a Method or Adding a 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.
See Also
Changes in MFC Versions
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|