Share via


Creating Your Dialog Class

OverviewHow Do I

For each dialog box in your program, create a new dialog class to work with the dialog resource.

Adding a Class explains how to create a new dialog class. When you create a dialog class with ClassWizard, ClassWizard writes the following items in the .H and .CPP files you specify:

In the .H file:

  • A class declaration for the dialog class. The class is derived from .

In the .CPP file:

  • A message map for the class.

  • A standard constructor for the dialog box.

  • An override of the member function. Edit this function with ClassWizard. It is used for dialog data exchange and validation capabilities as described later in Dialog data exchange and validation.

See Also   Life Cycle of a Dialog Box