Advertisement

WM_LBUTTONDBLCLK

Started by July 18, 2001 12:20 AM
1 comment, last by Sarlok 23 years, 7 months ago
Hi, I'm trying to handle single left-click, and double-left-click in WndProc();, but I'm not sure how to have them both, as when I run my program, WM_LBUTTONDOWN triggers before I can click the mouse again for a double click. Is there a way around this? Thanks. "When you kill one, it is a tragedy. When you kill ten million, it is a statistic." - Sarlok Edited by - Sarlok on July 18, 2001 1:31:51 AM
Four-thousand, six-hundred, and ninety-one irradiated haggis.
Hi,
What you have to do is quite annoying:
when the lbuttondown event arrives start a timer with system_dblclick_time (look for something like that in system/ mouse parameters).
if you received the timer event with no double click event then handle the onlbuttondown event. if you received a dblclick event kill the time and handle it as a double click event
-- Gilad
Advertisement
I Was afraid I was going to have to do that...
I just wasn''t sure if there was some other way.
Thanks.

"When you kill one, it is a tragedy. When you kill ten million, it is a statistic."
- Sarlok
Four-thousand, six-hundred, and ninety-one irradiated haggis.

This topic is closed to new replies.

Advertisement