Mouse Messages
From the programmer's point of view, the mouse interacts with a program by sending a series of messages. Windows generates several messages when the user moves the mouse or presses the mouse buttons. Table 9.1 shows some of the more common messages that an application uses.
Message | Meaning |
---|---|
WM_LBUTTONDBLCLK | Left mouse button pressed a second time within the double-click time |
WM_LBUTTONDOWN | Left mouse button pressed |
WM_LBUTTONUP | Left mouse button released |
WM_MOUSEMOVE | Mouse cursor moved |
WM_NCHITTEST | Tests what type of object the cursor is over (border, caption, client area, and so on) |
WM_NCMOUSEMOVE | Mouse cursor moved within a nonclient area of a window |
WM_RBUTTONDBLCLK | Right mouse button pressed a ... |
Get Microsoft Windows 2000 API SuperBible 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.