home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!psinntp!panix!rryan
- From: rryan@panix.com (Rob Ryan)
- Subject: Re: how to distinguish betwee
- Message-ID: <1992Dec23.043406.24762@panix.com>
- Date: Wed, 23 Dec 1992 04:34:06 GMT
- Distribution: comp
- References: <1992Dec22.3151.2938@dosgate>
- Organization: Panix, NYC
- Lines: 20
-
- In <1992Dec22.3151.2938@dosgate> chris.little@canrem.com (chris little) writes:
-
- >...
- >
- >My question is how to determine if the modifier keys are down during a
- >WM_LBUTTONDOWN message.
-
- I'm entering this discussion a little late, so I apologize if I'm
- misinterpreting your question but ...
-
- When using WM_LBUTTONDOWN, checking the value of wParam will determine the
- state of the shift, control, and middle or right mouse buttons. Basically,
- wParam will be the union of things like MK_CONTROL, MK_RBUTTON, MK_SHIFT,
- and MK_MBUTTON, so check for those.
-
- Hope this helps.
-
- --
- Rob Ryan
- rryan@panix.com
-