Mouse Messages

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

The following table shows the mouse messages, with a description of the purpose of each.

Message Description

WM_CAPTURECHANGED

This message is sent to the window losing the capture.

WM_GETICON

This message is sent to a window to retrieve the handle of the big or small icon associated with a window.

WM_LBUTTONDBLCLK

This message is posted when one of the following condition occurs:

  • The user double–taps the touch screen while the stylus is pressed to the touch screen in the client area of a window.
  • The user double–clicks the mouse while the cursor is located within the client area of a window.

WM_LBUTTONDOWN

This message is posted when the user presses the touch screen in the client area of a window or presses the left mouse button while the cursor is located within the client area of a window.

WM_LBUTTONUP

This message is posted when the user releases the stylus from the touch screen while the stylus is pressed to the touch screen in the client area of a window or when the user releases the left mouse button while the cursor is located within the client area of a window.

WM_MBUTTONDOWN

This message is posted when the user presses the middle mouse button while the cursor is located within the client area of a window.

WM_MBUTTONUP

This message is posted when the user releases the middle mouse button while the cursor is located within the client area of a window.

WM_MOUSEMOVE

This message is posted to a window when user moves the mouse while pressing the left mouse button or moves the stylus while the tip is down.

WM_MOUSEWHEEL

This message is posted to the window that has the focus when the user presses the mouse wheel.

WM_RBUTTONDOWN

This message is posted when the user presses the right mouse button while the cursor is located within the client area of a window.

WM_RBUTTONUP

This message is posted when the user releases the right mouse button while the cursor is located within the client area of a window.

WM_SETCURSOR

This message is sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured.

WM_SETICON

This message is sent by an application to associate a new big or small icon with a window.

Community Additions

Show: