Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to implement OnLButtonDown and OnLButtonDblClk

Status
Not open for further replies.

titanandrews

Programmer
Joined
Feb 27, 2003
Messages
130
Location
US
Hi,
This should be very simple, but I just don't get it. I have
Code:
ON_WM_LBUTTONDBLCLK()
ON_WM_LBUTTONDOWN()
in my message map and the 2 overridden functions,
OnLButtonDown() and OnLButtonDblClk() in my class. But even when I double click on my edit field, the OnLButtonDown() function is always invoked instead of OnLButtonDblClick(). The double click function never gets called when I double click. If I removed the button down function, then the double click works fine. What am I doing wrong? I should be able to implement both functions.

many thanks,

Barry

 
Never mind... I was getting the message after all. I just was not getting it when I put in ::AfxMessageBox("Blah") to see if my functions were being executed or when running under debugger. I assume that the messages were being "interferred" with under these conditions. Maybe someone would like to explain why.

thanks,

Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top