Home | Overview | How Do I | Tutorial
You can delete a member function by using ClassWizard, ClassView, or WizardBar. Deleting a function with ClassView or WizardBar removes the function declaration from the header (.h) file, removes any associated map entry from the MSG, MESSAGE or DISPATCH map, and comments out the function definition, if one exists. The function body remains selected so that you can easily delete it permanently if you wish.
If you delete a member function in the ClassWizard dialog box, the declaration is deleted from the class in the header file, and (if it is a message handler) any message-map entry is deleted from the implementation file. However, you must also manually remove the function definition, as well as any references to the function, from the implementation file. Browse through the class structure with ClassWizard to help you locate these references.
To delete a member function with ClassView
A dialog box will prompt you to confirm that you want to delete the function.
To delete a member function with WizardBar
The Action menu appears when you choose the arrow next to the Action button, or when you click the right mouse button when focus is on a WizardBar combo control.
A dialog box will prompt you to confirm that you want to delete the function.
To delete a member function with ClassWizard
See Also Adding a Class, Adding a Member Function, Adding a Member Variable, Overriding a Virtual Function, Adding a Message Handler, Navigating the Class Structure