![]() |
I hope insert true color icon to toolbar. |
Post Reply ![]() |
Author | |
copycdx2 ![]() Groupie ![]() Joined: 17 September 2008 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() Posted: 09 February 2009 at 2:13am |
why not display icon??
how do display true icon??
CXTPToolBar* pToolbar = (CXTPToolBar*) pCommandBars->Add(_T("ncControlToolbar"), xtpBarTop);
pNCControlToolbar->SetBarID(IDR_TOOLBAR_NC02); I want treecolor image.
pNCControlToolbar->GetImageManager()->SetImageList( IDB_TESTTOOLBAR, 16, ID_NCTOOLBARBASE );
CXTPControlButton* pButton = (CXTPControlButton*)pNCControlToolbar->GetControls()->Add(xtpControlButton, ID_NCTOOLBARBASE+1/*ID_NCSHOWGAMEPROG*/ ); |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Most easy way is to add Toolbar resource, add icons you need for Id you need, replace generated bmp file and in code add
pCommandBars->GetImageManager()->SetIcons(IDR_TOOLBAR_RESOURCE);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
You use default colorMask:
BOOL SetImageList(UINT nIDResourceBitmap, int cx, int nBaseCommand = 0, COLORREF clrMask = (COLORREF)-1); May be the problem here? |
|
![]() |
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 |