Print Page | Close Window

Large Icons displaying small pictures...

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=2031
Printed Date: 08 July 2024 at 2:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Large Icons displaying small pictures...
Posted By: ddlittle
Subject: Large Icons displaying small pictures...
Date Posted: 24 March 2005 at 5:02pm

Anybody know why (or how) one of my toolbars won't show the 32x32 bitmaps I have.  It insists on drawing 16x16 no matter what.  SetIcons() for its equivalent buttons doesn't work, either.  I can't seem to find any difference between it and any other toolbar.

Help!

Thanks...

- David




Replies:
Posted By: Oleg
Date Posted: 25 March 2005 at 1:36am
Please attach all code you have with it.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ddlittle
Date Posted: 28 March 2005 at 6:02pm

I finally figured out what was wrong.   The problem was that the buttons on that particular toolbar (and a couple of others) was defined as being 17x16 pixels.  When I went in the resource file and changed the numbers to 16,16, everything magically worked.  Of course, I had to go and adjust the bitmap buttons, but that's no big deal because I'm loading all of my buttons from a .DLL now anyway.

The code was just:

 CXTPToolBar* pToolBar = (CXTPToolBar*)pCommandBars->Add(_T("Editing Tools"), xtpBarTop);
 if (!pToolBar || !pToolBar->LoadToolBar(IDR_EDITING_TOOLS))
 {
  TRACE0("Failed to create toolbar\n");
  return 0x00;
 }

So that wasn't the problem.  Just a weird sized button.  I would label this as "Not a bug, behavior by design".

Thanks!

- 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