How do I handle ON_WM_TIMER() for toolbar button? |
Post Reply |
Author | |
kevins
Newbie Joined: 22 August 2006 Location: United States Status: Offline Points: 15 |
Post Options
Thanks(0)
Posted: 18 September 2006 at 11:55am |
I have a couple of buttons in a toolbar that need to catch the
buttonup/buttondown/timer messages so I can repeat an action when the
user holds down the toolbar button.
I've derived a class from CXTPControl and have created it in MainFrame::OnCreateControl, but where do I go from here? I couldn't find any sample code that uses a timer with a toolbar button. |
|
kevins
Newbie Joined: 22 August 2006 Location: United States Status: Offline Points: 15 |
Post Options
Thanks(0)
|
Any ideas out there?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, override void CXTPControlButton::OnClick(BOOL bKeyboard, CPoint pt)
method and copy some parts from CXTPControlButton::OnClick + CXTPControl::ClickToolBarButton. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |