WM_ENTERIDLE消息被发送到进入空闲状态的模态对话框或菜单的所有者窗口。模式对话框或菜单在处理一个或多个以前的消息后没有消息在其队列中等待时进入空闲状态。
WM_ENTERIDLE
fuSource = wParam; //空闲源标志
hwnd = (HWND) lParam; //对话框或所有者窗口的处理
参数
【Specifies whether the message is the result of a dialog box or a menu being displayed.】
价值【wParam中】.指定消息是否是对话框或正在显示的菜单的结果。此参数可以是以下值之一:
值 | 含义 |
MSGF_DIALOGBOX | 系统空闲,因为显示一个对话框。 |
MSGF_MENU | 系统空闲,因为显示菜单。 |
【HWND】
价值【lParam的】.包含对话框的句柄(如果【Specifies whether the message is the result of a dialog box or a menu being displayed.】是MSGF_DIALOGBOX)或包含显示菜单的窗口(如果【Specifies whether the message is the result of a dialog box or a menu being displayed.】是MSGF_MENU)。
返回值
处理此消息时,应用程序应返回零。
备注
DefWindowProc函数返回零。
也可以看看