Computer Science, asked by anjalinikhara7555, 1 year ago

What are the contents of lparam and wparam in case of client mouse messages ?

Answers

Answered by Anonymous
0

When the mouse is moved over the client area of a window, the window procedure receives the message WM_MOUSEMOVE. When a mouse button is pressed or released within the client area of a window, the window procedure receives the messages in this table:

Button Pressed Released Pressed (Second Click)

Left WM_LBUTTONDOWN WM_LBUTTONUP WM_LBUTTONDBLCLK

Middle WM_MBUTTONDOWN WM_MBUTTONUP WM_MBUTTONDBLCLK

Right WM_RBUTTONDOWN WM_RBUTTONUP WM_RBUTTONDBLCLK

Your window procedure receives MBUTTON messages only for a three-button mouse and RBUTTON messages only for a two-button mouse. The window procedure receives DBLCLK (double-click) messages only if the window class has been defined to receive them (as described in the section titled

Similar questions