In article <bodq87$8g2$accu.uu.nl>,
"B.G. Khang" <uu.nl> wrote:
I'm going to assume you have an event (either Classic style or Carbon
style) available. Check the event time -- for a Classic style that's
myEvent->when, for Carbon call GetEventTime().
If you are using Carbon events, however, it is easier to simply look at
kEventParamClickCount within the event, which will tell you for a given
mouse down if this is the 1st, 2nd, 3rd, etc mouse click in a "double
If for some bizarre reason you don't have events available at this point
in your code, call TickCount() to find out the time when you are
processing the mouse down and call GetDblTime() to find out how close
together the system wants events to be in order to consider them double
clicks. This approach, however, isn't as accurate because there can be
a delay between when an event is posted and when you get around to
actually processing it.