home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4465 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: How to distinguish between Click and Double-Click? 
  5. Distribution: world
  6. References: <1992Dec22.3151.2938@dosgate>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 30
  11. Date: Wed, 23 Dec 1992 21:49:12 +0000
  12. Message-ID: <725147352snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1992Dec22.3151.2938@dosgate> chris.little@canrem.com writes:
  16.  
  17. >In article <722@lax.lax.pe-nelson.com> (Tom W. Brown) writes:
  18. >
  19. >My question is how to determine if the modifier keys are down during a
  20. >WM_LBUTTONDOWN message.
  21. >
  22. >Chris Little
  23. >Logicus Incorporated.
  24. >
  25.  
  26. There are two things you can do.
  27.  
  28. 1.   The wParam parameter of the message will tell you about the common
  29.      modifiers - it'll be a "logical OR" of the state of the shift,
  30.      control, etc, keys.
  31.  
  32. 2.   You can call the "GetKeyState" message to find out the state of *any*
  33.      key at the time of the event currently being processed (as opposed to
  34.      "GetAsyncKeyState" which tells you the state of the key *now* ).
  35.  
  36. Chris
  37. -- 
  38. --------------------------------------------------------------------------
  39. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  40. | Warrington, UK                           | BIX: cmarriott              |
  41. | (Still awaiting inspiration              | CIX: cmarriott              |
  42. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  43. --------------------------------------------------------------------------
  44.  
  45.