ClassWizard: Tips and Troubleshooting

HomeOverviewHow Do ITutorial

This article summarizes key tips and troubleshooting advice for using ClassWizard effectively. The following topics are covered:

Using ClassWizard Tab Dialogs

ClassWizard has a "tab dialog" user interface: the ClassWizard dialog box contains "tabs" that resemble the tabs on a group of file folders. Each tab's label shows what kind of functionality you can edit on that tab. To select a tab, click its label. Use the following tips:

Adding Functions with ClassWizard

ClassWizard lets you create handler functions and connect them to the menu items, toolbar buttons, and accelerators whose commands they respond to. Use the following tips:

Adding Variables with ClassWizard

ClassWizard lets you add member variables to some classes. For example, you can add member variables to a dialog class to represent the dialog box's controls. Use the following tips:

Adding Code from ClassWizard

After you've added a new member function in the ClassWizard dialog box, click Edit Code to add the implementation code for the function. A Visual C++ source code editor window opens with the file containing the class for the member function. A highlighted comment indicates where to add your code. Use the following tip:

Opening Your

RC File

Visual C++ lets you open resources in two ways. You can open individual resources (in compiled form) in the Visual C++ resource editors. Or you can open the .rc file to edit it directly as a text file. Use the following tip: