Share via


COleControl::PreModalDialog

Notifies the container that a modal dialog box is about to be displayed.

void PreModalDialog(
   HWND hWndParent = NULL
);

Parameters

  • hWndParent
    Handle to the parent window of the modal dialog box.

Remarks

Call this function before displaying any modal dialog box. You must call this function so that the container can disable all its top-level windows. After the modal dialog box has been displayed, you must then call PostModalDialog.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::PostModalDialog

Other Resources

COleControl Members