![]() |
Toolbar icons not displayed |
Post Reply ![]() |
Author | |
JerryEvans ![]() Groupie ![]() ![]() Joined: 01 May 2008 Location: United Kingdom Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() Posted: 22 May 2008 at 7:51am |
I've got a variety of toolbars all of which are based on 32BPP bitmaps. All are created in the same way in the OnCreate() member function of my Frame window. The snap below shows the active undo and find buttons. The 'select view' shows my problem - no bitmap. Any clues to why this is happening?
![]() ![]() Here is the code: CXTPToolBar* pToolBarViews = pCB->Add(_T("Views"), xtpBarTop); if (pToolBarViews) { pToolBarViews->SetBarID(IDR_TOOLBAR_VIEWS); CXTPControlPopup* p = (CXTPControlPopup*) pToolBarViews->GetControls()->Add(xtpControlButtonPopup,ID_VIEW_SELECT); if (p) { p->SetStyle(xtpButtonCaption); p->SetCaption("Select View"); CMenu menu; menu.LoadMenu(IDR_SYSTEM); p->SetCommandBar(menu.GetSubMenu(1)); } pToolBarViews->GetControls()->Add(xtpControlButton,ID_VIEW_CONCISE); DockRightOf(pToolBarViews,pTBS); } |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You create toolbar manually so have manually Load images.
Add bitmap + toolbar resource and call
pCOmmandBars->GetImageManager()->SetIcons(IDR_TOOLBAR_VIEWS);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
JerryEvans ![]() Groupie ![]() ![]() Joined: 01 May 2008 Location: United Kingdom Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() |
Thanks Oleg -
|
|
![]() |
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 |