stchsc
asked on
Timer for Single Click and Double Click
I am making an MFC application that allows the user to draw in a system that I will analyze. The user will use the left mouse button and right mouse button to draw the system (single click and drag). The user will double-click with the left mouse button in order for a dialog box to pop-up for the user to enter the item's data. My problem is when I double click with the left mouse button, the LeftMouseButtonDown function is called before the LeftMouseButtonDoublClick function. This is causing me great pain b/c it executes code that I don't want it to. I need some sort of timer to make the OnLeftButtonDown function wait to see if the user is double-clicking before calling that function. Help ME!!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER