CButton Sib-class
-
I need to start a timer when a button is pressed and then stop the timer when the button is released. I think I need to sub-class CButton as dont have the WM_KEYUP or WM_KEYDOWN events in the CButton class. Can someone point me in the direction of how to sub-class a control in Visual Studio 7.1 please. Many thanks, Graham. grahamfff
-
I need to start a timer when a button is pressed and then stop the timer when the button is released. I think I need to sub-class CButton as dont have the WM_KEYUP or WM_KEYDOWN events in the CButton class. Can someone point me in the direction of how to sub-class a control in Visual Studio 7.1 please. Many thanks, Graham. grahamfff
http://www.codeproject.com/buttonctrl/autorepeat.asp[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004
-
I need to start a timer when a button is pressed and then stop the timer when the button is released. I think I need to sub-class CButton as dont have the WM_KEYUP or WM_KEYDOWN events in the CButton class. Can someone point me in the direction of how to sub-class a control in Visual Studio 7.1 please. Many thanks, Graham. grahamfff