Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Different icons for large toolbar...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Different icons for large toolbar...

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: Different icons for large toolbar...
    Posted: 11 March 2005 at 3:14pm

Anybody know which sample shows switching the bitmaps when the user selects "Large Icons"?  I tried CommandBarIcons, which is close, but none of the toolbars seem to be 32x32, only 15x15 or 16x16. 

Oh, I'm using VC6 and XTP9.5 (soon to be 9.6)..

Thanks!

 

- David

Back to Top
Sven View Drop Down
Senior Member
Senior Member


Joined: 21 August 2003
Location: Germany
Status: Offline
Points: 127
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sven Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2005 at 2:48am

Use XTPImageManager()->SetIcons(...):


XTPImageManager()->SetIcons(.., CSize(16,16));
XTPImageManager()->SetIcons(.., CSize(24,24));

Before that you have to set the size of the large icons to:


CXTPCommandBarsOptions* pOptions = pCommandBars->GetCommandBarsOptions();
pOptions->szLargeIcons = CSize(24, 24);



Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 14 March 2005 at 4:01pm

Thanks, Sven!  That seems to work great.  I found similar code in the "Intelligent Menu" sample after you posted...

Regards,

- David

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.