🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #1841

Re: How to distinguish between Click and Double-Click?

#1841
From: Chris Marriott
Date: Wed, 23 Dec 1992 21:49
30 lines
1702 bytes
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     |
--------------------------------------------------------------------------
 
Technical Details
Message-ID: <725147352snz@chrism.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
References: <1992Dec22.3151.2938@dosgate>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Path: arc1-ca.pugleaf.net!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