button catch double click.
-
I search on Web, and did not get clear answer. Now here is the way to catch double click action by a ordinary button. :laugh: create CMyButton based on CButton. add WM_LBUTTONDBLCLK message handler. use wizard add variable for the IDC_BUTTON1. let it's type be CMyButton. that's it. You will catch Bouble Click action my CMyButton. Easy huh!
-
I search on Web, and did not get clear answer. Now here is the way to catch double click action by a ordinary button. :laugh: create CMyButton based on CButton. add WM_LBUTTONDBLCLK message handler. use wizard add variable for the IDC_BUTTON1. let it's type be CMyButton. that's it. You will catch Bouble Click action my CMyButton. Easy huh!
Maybe so, but you need to question using double-click with a standard button. Windows users don't typically double-click buttons, so you're going to have a hard time training them to do so in your application. Presumably, the normal click on your buttons performs some other action. You'll also have the danger of that action being performed instead, even though the user thought they were performing a double-click.
Software Zen:
delete this;
-
I search on Web, and did not get clear answer. Now here is the way to catch double click action by a ordinary button. :laugh: create CMyButton based on CButton. add WM_LBUTTONDBLCLK message handler. use wizard add variable for the IDC_BUTTON1. let it's type be CMyButton. that's it. You will catch Bouble Click action my CMyButton. Easy huh!