![]() |
How to Dynamic change CXTPToolBar button's icon |
Post Reply
|
| Author | |
siwen
Newbie
Joined: 23 January 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: How to Dynamic change CXTPToolBar button's iconPosted: 23 January 2009 at 4:43am |
|
CXTPToolBar* pMyStatusdBar
m_pMyStatusdBar = (CXTPToolBar*)pCommandBars->Add(_T("Test"), xtpBarTop); if (!m_pMyStatusdBar || !m_pMyStatusdBar->LoadToolBar(IDR_STATUS_TOOLBAR)) { TRACE0("Failed to create toolbar\n"); } m_pMyStatusdBar->EnableDocking( xtpFlagHideWrap| xtpFlagStretched ); m_pMyStatusdBar->ShowExpandButton(FALSE); m_pMyStatusdBar->SetShowGripper(FALSE); m_pMyStatusdBar->SetCloseable(FALSE); But how can Dynamic command button Icon? thks |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 January 2009 at 7:42am |
|
Hi,
call pMyStatusdBar ->GetControl(index)->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 |