WM_LBUTTONDBLCLK
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement