Microsoft DirectX 9.0 |
The PossiblyEatMessage method forwards keyboard and mouse messages to the message-drain window.
Syntax
BOOL WINAPI PossiblyEatMessage(
UINT uMsg,
WPARAM wParam,
LPARAM lParam
)
Parameters
uMsg
Window message.
wParam
First message parameter.
lParam
Second message parameter.
Return Value
Returns TRUE if the message was forwarded to the window, or FALSE otherwise.
Remarks
The message-drain window is a window designated to receive certain mouse and keyboard messages. Initially the window is NULL; it can be set by calling CBaseControlWindow::put_MessageDrain.
If the message-drain window is non-NULL, PossiblyEatMessage posts the following messages to that window:
It ignores other messages. If the message-drain window is NULL, the method ignores all window messages. The method returns TRUE if it posts the message, or FALSE otherwise. The CBaseWindow class calls this method when it receives a window message.
See Also