static CWnd* GetSysModalWindow();
Returns the system-modal window, if there is one.
Identifies the system-modal window, if one is present. If no such window is present, the return value is NULL.
The returned pointer may be temporary, and should not be stored for later use.
::GetSysModalWindow, CWnd::SetSysModalWindow