SetSysModalWindow

Syntax

HWND SetSysModalWindow(hWnd)

This function makes the specified window a system-modal window.

Parameter Type/Description  

hWnd HWND Identifies the window to be made system modal.  

Return Value

The return value identifies the window that was previously the system-modal window.

Comments

If another window is made the active window (for example, the system-modal window creates a dialog box that becomes the active window), the active window becomes the system-modal window. When the original window becomes active again, it is system modal. To end the system-modal state, destroy the system-modal window.