Adding a Member Function
You can add a member function to any class using Class View. Using the Add Member Function Wizard adds a declaration to the header file, and adds a stub member function body to the class's implementation file, which you can then edit.
To add a member function using the Add Member Function Wizard
In Class View, expand the project node to display the classes in the project.
Right click the class to which you want to add a member function.
On the shortcut menu, click Add then click Add Function to display the Add Member Function Wizard.
Provide the member function information in the appropriate wizard boxes. See Add Member Function Wizard for details.
Click Finish to generate the member function code.
See Also
Tasks
Reference
Navigating the Class Structure