Freigeben über


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

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::PostModalDialog