WPARAM with 5 args

Try to do this:

enter image description here

Code:

WPARAM wParam = MAKEWPARAM(MK_LBUTTON, MK_RBUTTON, MK_SHIFT, MK_CONTROL, MK_MBUTTON);
PostMessage(hWnd, WM_MOUSEMOVE, wParam, MAKELPARAM(0, 0));

Get this:

enter image description here

Anybody know what I do wrong and how to fix it?

Upvotes: 0

Views: 60

Answers (1)

Mark Ransom
Mark Ransom

Reputation: 308402

The answer is in the screenshot. Use the vertical bar | to combine the options.

Upvotes: 2

Related Questions