Print Page | Close Window

How do I handle ON_WM_TIMER() for toolbar button?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5078
Printed Date: 04 October 2024 at 3:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I handle ON_WM_TIMER() for toolbar button?
Posted By: kevins
Subject: How do I handle ON_WM_TIMER() for toolbar button?
Date 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.




Replies:
Posted By: kevins
Date Posted: 25 September 2006 at 1:55pm
Any ideas out there?


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net