Click to See Complete Forum and Search --> : capture mouse click,release event


MFCQuery
August 10th, 2009, 09:15 AM
In a c++ application how to know mouse button(left/right) is clicked,pressed or release.

hoxsiew
August 10th, 2009, 11:37 AM
"C++ application" is vague in this context. In a Win32 application, the message queue will receive WM_RBUTTONDOWN and WM_LBUTTONDOWN messages for those events.

andrey_zh
August 10th, 2009, 05:48 PM
Say, I have a dialog with a button. How and where do I get control to my application, when the button is already pushed but not yet released?

MFCQuery
August 11th, 2009, 02:45 AM
Thanks. Can you please give any example. I want to capture mouse events in an addin(outlook)