Article View: comp.os.ms-windows.programmer.misc
Article #1771how to distinguish betwee
From: chris little
Date: Tue, 22 Dec 1992 22:22
Date: Tue, 22 Dec 1992 22:22
32 lines
1787 bytes
1787 bytes
In article <722@lax.lax.pe-nelson.com> (Tom W. Brown) writes: > Just thinking about trying to make this work properly for all cases and > users makes me feel slightly nauseated though. A double click should > only perform an action that is an extension of whatever a single click > does, anything else would be confusing and cause endless annoyance. I'm > not a Mac user, but I'll bet that even there it is a very rare case > where a double click does something completely unrelated to a single > click. > I think the suggestion that modifier keys (CTRL, ALT, SHIFT) be used to > distinguish between different actions on a click is the best way to go > unless you want to introduce "mouse modes" in your application where the > current mode determines the action of a click. As a Mac programmer I will comfirm that double-clicks are always an extension of a single-click. To track single vs double clicks you have to record the time of a mouse down event and compare it against the double-click time and the current tick count during the next mouse down event. My question is how to determine if the modifier keys are down during a WM_LBUTTONDOWN message. Chris Little Logicus Incorporated. --- This copy of Freddie 1.2 is being evaluated. -- Canada Remote Systems - Toronto, Ontario World's Largest PCBOARD System - 416-629-7000/629-7044
Technical Details
Message-ID:
<1992Dec22.3151.2938@dosgate>Path:
arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!canrem!dosgate!dosgate![chris.little@canrem.com]Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!canrem!dosgate!dosgate![chris.little@canrem.com] From: "chris little" <chris.little@canrem.com> Subject: how to distinguish betwee Message-ID: <1992Dec22.3151.2938@dosgate> Reply-To: "chris little" <chris.little@canrem.com> Organization: Canada Remote Systems Distribution: comp Date: 22 Dec 92 17:22:01 EST Lines: 32