windows_programming_notes.nbk: Home | Index | Next Page: WM_MOUSEMOVE | Previous Page: WM_MOUSEHOVER
he WM_MOUSELEAVE message is posted to a window when the cursor leaves the client area of the window 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_MOUSELEAVE WPARAM wParam, // not used LPARAM lParam // not used );
This message has no parameters.
If an application processes this message, it should return zero.
All tracking requested by TrackMouseEvent is canceled when this message is generated. The application must call TrackMouseEvent when the mouse reenters its window if it requires further tracking of mouse hover behavior.
Windows NT/2000 or later: Requires Windows NT 4.0 or later. Windows 95/98/Me: Requires Windows 98 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: WM_MOUSEMOVE | Previous Page: WM_MOUSEHOVER
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time