Modal and Modeless Dialog Boxes

HomeOverviewHow Do ISampleTutorial

You can use class CDialog to manage two kinds of dialog boxes:

The resource editing and ClassWizard procedures for creating a dialog template are the same for modal and modeless dialog boxes.

Creating a dialog box for your program requires the following steps:

  1. Use the dialog editor to design the dialog box and create its dialog-template resource.

  2. Use ClassWizard to create a dialog class.

  3. Use ClassWizard to connect the dialog resource’s controls to message handlers in the dialog class.

  4. Use ClassWizard to add data members associated with the dialog box’s controls and to specify dialog data exchange and dialog data validations for the controls.

See Also   Life Cycle of a Dialog Box