home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- From: chris@chrism.demon.co.uk (Chris Marriott)
- Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
- Subject: Re: How to distinguish between Click and Double-Click?
- Distribution: world
- References: <1992Dec22.3151.2938@dosgate>
- Organization: None
- Reply-To: chris@chrism.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 30
- Date: Wed, 23 Dec 1992 21:49:12 +0000
- Message-ID: <725147352snz@chrism.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <1992Dec22.3151.2938@dosgate> chris.little@canrem.com writes:
-
- >In article <722@lax.lax.pe-nelson.com> (Tom W. Brown) writes:
- >
- >My question is how to determine if the modifier keys are down during a
- >WM_LBUTTONDOWN message.
- >
- >Chris Little
- >Logicus Incorporated.
- >
-
- There are two things you can do.
-
- 1. The wParam parameter of the message will tell you about the common
- modifiers - it'll be a "logical OR" of the state of the shift,
- control, etc, keys.
-
- 2. You can call the "GetKeyState" message to find out the state of *any*
- key at the time of the event currently being processed (as opposed to
- "GetAsyncKeyState" which tells you the state of the key *now* ).
-
- Chris
- --
- --------------------------------------------------------------------------
- | Chris Marriott | chris@chrism.demon.co.uk |
- | Warrington, UK | BIX: cmarriott |
- | (Still awaiting inspiration | CIX: cmarriott |
- | for a witty .sig .... ) | CompuServe: 100113,1140 |
- --------------------------------------------------------------------------
-
-