windows_programming_notes.nbk: Home | Index | Next Page: WM_MOUSELEAVE | Previous Page: WM_MOUSEACTIVATE
The WM_MOUSEHOVER message is posted to a window when the cursor hovers over the client area of the window for the period of time specified in a prior call to TrackMouseEvent.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_MOUSEHOVER WPARAM wParam, // key indicator LPARAM lParam // horizontal and vertical position );
If an application processes this message, it should return zero.
Hover tracking stops when WM_MOUSEHOVER is generated. The application must call TrackMouseEvent again if it requires further tracking of mouse hover behavior.
Use the following code to obtain the horizontal and vertical position:
You can also use the MAKEPOINTS macro to convert the lParam parameter to a POINTS structure.
windows_programming_notes.nbk: Home | Index | Next Page: WM_MOUSELEAVE | Previous Page: WM_MOUSEACTIVATE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time