The WM_ENTERIDLE message is sent to the owner window of a modal dialog box or menu that is entering an idle state. A modal dialog box or menu enters an idle state when no messages are waiting in its queue after it has processed one or more previous messages.
WM_ENTERIDLE
fuSource = wParam; // idle-source flag
hwnd = (HWND) lParam; // handle of dialog box or owner window
Value | Meaning |
---|---|
MSGF_DIALOGBOX | The system is idle because a dialog box is displayed. |
MSGF_MENU | The system is idle because a menu is displayed. |
An application should return zero if it processes this message.
You can suppress the WM_ENTERIDLE message for a dialog box by creating the dialog box with the DS_NOIDLEMSG style.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Dialog Boxes Overview, Dialog Box Messages, DefWindowProc