Print Page | Close Window

howt to use SetButtonInfo in CXTPToolBar?

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=11575
Printed Date: 28 February 2025 at 9:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: howt to use SetButtonInfo in CXTPToolBar?
Posted By: chentob
Subject: howt to use SetButtonInfo in CXTPToolBar?
Date Posted: 25 July 2008 at 2:13am
CToolBar has a  method "SetButtonInfo".
 
void SetButtonInfo(
   int nIndex,
   UINT nID,
   UINT nStyle,
   int iImage
);
 
 
just like SetButtonInfo( Index, ID_LINETYPE , TBBS_SEPARATOR, 100 );
 
but I don't know how to use CXTPToolBar replace the SetButtonInfo to other function.
 
could the CXTPToolBar replace the other function to CToolBar's  SetButtonInfo?



Replies:
Posted By: Oleg
Date Posted: 25 July 2008 at 2:27am
use methods of CXTPControl instead:
 
pToolBar->GetControl(nIndex)->SetID(nID);
pToolBar->GetControl(nIndex)->SetStyle(...);
pToolBar->GetControl(nIndex)->SetIconId(...);


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