![]() |
howt to use SetButtonInfo in CXTPToolBar? |
Post Reply
|
| Author | |
chentob
Newbie
Joined: 25 July 2008 Location: China Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: howt to use SetButtonInfo in CXTPToolBar?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?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |