WM_ENTERIDLE message (Windows)

Switch View :
ScriptFree
WM_ENTERIDLE message

Applies to: desktop apps only

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.

#define WM_ENTERIDLE                    0x0121

Parameters

wParam

This parameter can be one of the following values.

ValueMeaning
MSGF_DIALOGBOX
0

The system is idle because a dialog box is displayed.

MSGF_MENU
2

The system is idle because a menu is displayed.

 

lParam

A handle to the dialog box (if wParam is MSGF_DIALOGBOX) or window containing the displayed menu (if wParam is MSGF_MENU).

Return value

An application should return zero if it processes this message.

Remarks

You can suppress the WM_ENTERIDLE message for a dialog box by creating the dialog box with the DS_NOIDLEMSG style.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

See also

Reference
DefWindowProc
Conceptual
Dialog Boxes

 

 

Send comments about this topic to Microsoft

Build date: 2/10/2012

Community Content

Đonny
Value
WM_ENTERIDLE = &H121
Public Enum WM_ENTERIDLE As Integer
MSGF_DIALOGBOX = 0
MSGF_MENU = 2
End Enum