WM_ENTERIDLE

2.x

WM_ENTERIDLE
fwSource = wParam;                  /* idle-source flag               */
hwndDlg = (HWND) LOWORD(lParam);    /* handle of dialog box or window */

The WM_ENTERIDLE message informs an application's main window procedure that a modal dialog box or a 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.

Parameters

fwSource

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 Description

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.

hwndDlg

Value of the low-order word of lParam. Identifies the dialog box (if fwSource is MSGF_DIALOGBOX) or the handle of the window containing the displayed menu (if fwSource is MSGF_MENU).

Return Value

An application should return zero if it processes this message.

Comments

The DefWindowProc function returns zero when it processes this message.

See Also

DefWindowProc