Public Members

Construction/Destruction

CModalDialog Constructs a CModalDialog object and stores the parameters for use when the member function DoModal is called.  

Initialization

CreateIndirect Initializes a CModalDialog object as the second phase of indirect dialog-box creation (nonresource based). The parameters are stored until the function DoModal is called.  

Operations

DoModal Invokes the dialog box and returns when done.  

Overridables

OnOK Override this member to perform the OK button action. The default terminates the dialog box, and DoModal will return IDOK.  
OnCancel Override this member to perform the Cancel button action. The default terminates the dialog box, and DoModal will return IDCANCEL.