Link to home
Start Free TrialLog in
Avatar of FuzzyLogic
FuzzyLogic

asked on

Getting the mouse key flags (fwKeys)

I would like to read the mouse key flags (fwKeys) which are passed by windows in the WM_MOUSEwhatever messages - outside of the message.
I think that there is a function for that, but I cannot find it.

Actually I bypassed my problem by using my own flag with is set or cleared with WM_LBUTTONUP/DOWN messages, but I want to know if there is an easier way to do so.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FuzzyLogic
FuzzyLogic

ASKER

Are you sure that there is VK_[L/M/R]BUTTON?
It does not apeer in the help.
Yes, I am sure (used this technique often ;-)

See winuser.h for the definitions (although I have to admit that both these constants as the API are not well documented..