Home | Overview | How Do I | Tutorial
When you change the name of a class or move it from one implementation file to another, you're prompted to update the information in the ClassWizard (.clw) file the next time you start ClassWizard.
To change the name of a class or move it from one file to another
Note When you change the name of a class, remember to change it everywhere, including in the special-format comments ClassWizard uses. For example:
//{{AFX_MSG_MAP(OldClass) becomes //{{AFX_MSG_MAP(NewClass)
If ClassWizard appears, the active project does not contain the renamed or moved class.
ClassWizard displays a message box warning you that the old class could not be found.
The Repair Class Information dialog box appears.
Supply the new information about the class in the Class Name, Header File, and Implementation File text boxes. If necessary, use the Browse button to supply the correct name of the header file or the implementation file.
See Also Keeping ClassWizard Updated When Code Changes, Deleting Classes, Rebuilding the ClassWizard (.clw) File