WM_ENTERIDLE
fuSource = wParam; /* idle-source flag */
hwnd = (HWND) lParam; /* handle of dialog box or owner window */
The WM_ENTERIDLE message informs an application's main window procedure that a modal dialog box or menu 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.
fuSource
Value of wParam. Specifies whether the message is the result of a dialog box or a menu being displayed. This parameter can be one of the following values:
Value | Meaning |
MSGF_DIALOGBOX | The system is idle because a dialog box is being displayed. |
MSGF_MENU | The system is idle because a menu is being displayed. |
hwnd
Value of lParam. Contains the handle of the dialog box (if fuSource is MSGF_DIALOGBOX) or of the window containing the displayed menu (if fuSource is MSGF_MENU).
An application should return zero if it processes this message.
The DefWindowProc function returns zero.