![]() |
WTL ImageManagerIcons::AddBitmap code |
Post Reply
|
| Author | |
Vincent3
Newbie
Joined: 02 June 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: WTL ImageManagerIcons::AddBitmap codePosted: 06 June 2006 at 5:30am |
|
To help WTL developer (thanks to Oleg), this is a WTL code to use the fonction AddBitmap in the RibbonBar 10.2
static int icons[] = {ID_FILE_NEW, ID_FILE_OPEN, ID_FILE_SAVE, ID_EDIT_CUT, ID_EDIT_COPY, ID_EDIT_PASTE, ID_FILE_PRINT, ID_APP_ABOUT}; CComSafeArray<int> safeCommands(_countof(icons)); for(int i = 0; i < _countof(icons); ++i) safeCommands.SetAt(i, icons); hr = pImageManagerIcons->AddBitmap(HandleToLong(AtlLoadBitmap( ID_SMALL_ICONS)), CComVariant((LPSAFEARRAY)safeCommands), XtremeCommandBars::xtpImageNormal, VARIANT_FALSE); olivier |
|
![]() |
|
JamesH
Senior Member
Joined: 01 December 2004 Status: Offline Points: 149 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 July 2006 at 8:00pm |
|
Thank you for posting this. I just spent a while trying to figure out. My problem was the fact that AddBitmap isn't listed in the documentation as a member of the command bars image manager icons. It only lists AddIcon....
|
|
![]() |
|
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 |