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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!psinntp!panix!rryan
  3. From: rryan@panix.com (Rob Ryan)
  4. Subject: Re: how to distinguish betwee
  5. Message-ID: <1992Dec23.043406.24762@panix.com>
  6. Date: Wed, 23 Dec 1992 04:34:06 GMT
  7. Distribution: comp
  8. References: <1992Dec22.3151.2938@dosgate>
  9. Organization: Panix, NYC
  10. Lines: 20
  11.  
  12. In <1992Dec22.3151.2938@dosgate> chris.little@canrem.com (chris little) writes:
  13.  
  14. >...
  15. >
  16. >My question is how to determine if the modifier keys are down during a
  17. >WM_LBUTTONDOWN message.
  18.  
  19. I'm entering this discussion a little late, so I apologize if I'm
  20. misinterpreting your question but ...
  21.  
  22. When using WM_LBUTTONDOWN, checking the value of wParam will determine the
  23. state of the shift, control, and middle or right mouse buttons.  Basically,
  24. wParam will be the union of things like MK_CONTROL, MK_RBUTTON, MK_SHIFT,
  25. and MK_MBUTTON, so check for those.
  26.  
  27. Hope this helps.
  28.  
  29. -- 
  30.  Rob Ryan
  31.     rryan@panix.com
  32.