Name

Public Const WM_XBUTTONDOWN = &H20B

Synopsis

wParam

The low-order word contains the virtual keys pressed when this message is posted; it can be one or more of the following, defined in Appendix C:

MK_CONTROL
MK_LBUTTON
MK_RBUTTON
MK_MBUTTON
MK_SHIFT
MK_XBUTTON1
MK_XBUTTON2

The high-order word contains the x-button that was pressed; it can be one of the following, defined in Appendix C:

XBUTTON1
XBUTTON2
lParam

The low-order word contains the x-coordinate of the mouse pointer; the high-order word contains the y-coordinate of the mouse pointer.

Description

Posted to the window over which the mouse’s x-button is pressed.

Return Value

0 only if the application processes this message.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.