Print Page | Close Window

Get CXTPToolBar item index

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=689
Printed Date: 15 May 2024 at 12:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Get CXTPToolBar item index
Posted By: yoavo
Subject: Get CXTPToolBar item index
Date Posted: 04 May 2004 at 9:38am

Hi,

I have a CXTPToolBar object, and I need to know the index of an item in the toolbar by the item's command id.

In MFC toolbar I can do it with TB_COMMANDTOINDEX message. How do I do it with CXTPToolBar ???

Yoav.




Replies:
Posted By: Oleg
Date Posted: 04 May 2004 at 2:06pm
pToolBar->GetControls()->FindControl(id)->GetIndex( );

-------------
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