windows_programming_notes.nbk: Home | Index | Next Page: WM_NCMOUSEMOVE | Previous Page: WM_NCMOUSEHOVER


 WM_NCMOUSELEAVE

The WM_NCMOUSELEAVE message is posted to a window when the cursor leaves the nonclient 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_NCMOUSELEAVE
      WPARAM wParam,   // not used
      LPARAM lParam    // not used
    );

Parameters

This message has no parameters.

Return Values

If an application processes this message, it should return zero.

Remarks

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.

Requirements

  Windows NT/2000 or later: Requires Windows 2000 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_NCMOUSEMOVE | Previous Page: WM_NCMOUSEHOVER


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time