Print Page | Close Window

Different icons for large toolbar...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1955
Printed Date: 08 July 2024 at 2:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Different icons for large toolbar...
Posted By: ddlittle
Subject: Different icons for large toolbar...
Date 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




Replies:
Posted By: Sven
Date 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);





Posted By: ddlittle
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net