Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How do I handle ON_WM_TIMER() for toolbar button?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I handle ON_WM_TIMER() for toolbar button?

 Post Reply Post Reply
Author
Message
kevins View Drop Down
Newbie
Newbie
Avatar

Joined: 22 August 2006
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote kevins Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
kevins View Drop Down
Newbie
Newbie
Avatar

Joined: 22 August 2006
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote kevins Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2006 at 1:55pm
Any ideas out there?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.