Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Forwards keyboard and mouse messages to a specified window.
BOOL WINAPI PossiblyEatMessage( HWND hwndDrain , UINT uMsg , WPARAM wParam , LPARAM lParam );
Parameters
Return Values
Returns TRUE if the message was posted or FALSE if it wasn't.
Remarks
When the window is owned, it will pass certain classes of messages to the owning window (such as keyboard and mouse events). In this case, the Win32 PostMessagefunction is used to post messages to any window specified by hwndDrainwhich is set in CBaseControlWindow::put_MessageDrain. If a certain message cannot be posted, this message will return FALSE.
The following is a list of messages that will get passed on untranslated and return TRUE.
WM_CHAR | WM_DEADCHAR |
WM_KEYDOWN | WM_KEYUP |
WM_LBUTTONDBLCLK | WM_LBUTTONDOWN |
WM_LBUTTONUP | WM_MBUTTONDBLCLK |
WM_MBUTTONDOWN | WM_MBUTTONUP |
WM_MOUSEACTIVATE | WM_MOUSEMOVE |
WM_NCHITTEST | WM_NCLBUTTONDBLCLK |
WM_NCLBUTTONDOWN | WM_NCLBUTTONUP |
WM_NCMBUTTONDBLCLK | WM_NCMBUTTONDOWN |
WM_NCMBUTTONUP | WM_NCMOUSEMOVE |
WM_NCRBUTTONDBLCLK | WM_NCRBUTTONDOWN |
WM_NCRBUTTONUP | WM_RBUTTONDBLCLK |
WM_RBUTTONDOWN | WM_RBUTTONUP |
WM_SYSCHAR | WM_SYSDEADCHAR |
WM_SYSKEYDOWN | WM_SYSKEYUP |