![]() |
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)
Quote Reply
Topic: How do I handle ON_WM_TIMER() for toolbar button?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)
Quote Reply
Posted: 25 September 2006 at 1:55pm |
|
Any ideas out there?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 September 2006 at 2:15pm |
|
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 |