<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : PNG Toolbar images are showing too small</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : PNG Toolbar images are showing too small]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 13:50:38 +0000</pubDate>
  <lastBuildDate>Wed, 29 Oct 2008 16:06:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12554</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[PNG Toolbar images are showing too small : ok :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42474&amp;title=png-toolbar-images-are-showing-too-small#42474</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12554<br /><strong>Posted:</strong> 29 October 2008 at 4:06pm<br /><br /><P>ok :)</P>]]>
   </description>
   <pubDate>Wed, 29 Oct 2008 16:06:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42474&amp;title=png-toolbar-images-are-showing-too-small#42474</guid>
  </item> 
  <item>
   <title><![CDATA[PNG Toolbar images are showing too small : Hi,   The PNG bitmap is 288x48...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42453&amp;title=png-toolbar-images-are-showing-too-small#42453</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 12554<br /><strong>Posted:</strong> 29 October 2008 at 6:04am<br /><br />Hi, <DIV>&nbsp; The PNG bitmap is 288x48 pixels and in debugger SetIcons function loads 2 icons with the size of 48x48</DIV><DIV>&nbsp;&nbsp; I have tried a PNG with the size of 96x48 and now the bitmaps are displayed correctly !</DIV><DIV>&nbsp;&nbsp; It seems that SetIcons loads the entire bitmap, no matter what size you specify in <FONT size=2>szLargeIcons </FONT>and then it just slices the bitmap according to the number of toolbar buttons and then it scales the image to fit in toolbar, very strange behaviour.</DIV><DIV>&nbsp;&nbsp; You should specify in documentation or in sample source code as a comment that // The Toolbar bitmap should be the exact size or it won't display correctly.</DIV><DIV>&nbsp;</DIV><DIV>Thanks Oleg !</DIV><DIV>You have a great supprt ! <img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 29 Oct 2008 06:04:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42453&amp;title=png-toolbar-images-are-showing-too-small#42453</guid>
  </item> 
  <item>
   <title><![CDATA[PNG Toolbar images are showing too small : Hi,  Looks right.  What size...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42449&amp;title=png-toolbar-images-are-showing-too-small#42449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12554<br /><strong>Posted:</strong> 29 October 2008 at 5:09am<br /><br /><P>Hi,</P><DIV></DIV><DIV></DIV>Looks right. <DIV>What size IDB_MAINTOOLBAR bitmap has ?</DIV><DIV>&nbsp;</DIV><DIV>also try step into SetIcons and check how many icons atually set.</DIV>]]>
   </description>
   <pubDate>Wed, 29 Oct 2008 05:09:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42449&amp;title=png-toolbar-images-are-showing-too-small#42449</guid>
  </item> 
  <item>
   <title><![CDATA[PNG Toolbar images are showing too small : IDR_TOOLBAR TOOLBAR 48, 48BEGIN...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42435&amp;title=png-toolbar-images-are-showing-too-small#42435</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 12554<br /><strong>Posted:</strong> 28 October 2008 at 6:51pm<br /><br />IDR_TOOLBAR TOOLBAR&nbsp; 48, 48<BR>BEGIN<BR>&nbsp;&nbsp;&nbsp; BUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_MAIN_EXIT<BR>&nbsp;&nbsp;&nbsp; BUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_MAIN_TEST<BR>END<BR><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>...I have also tried with IDR_TOOLBAR TOOLBAR MOVEABLE PURE 48,48 just like in WinZip GUI sample..., but&nbsp;I got the same result.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>....and this is the menu</DIV><DIV>IDR_MAIN_MENU MENU <BR>BEGIN<BR>&nbsp;&nbsp;&nbsp; POPUP "Main"<BR>&nbsp;&nbsp;&nbsp; BEGIN<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "E&amp;xit",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_MAIN_EXIT<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "Test",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_MAIN_TEST<BR>&nbsp;&nbsp;&nbsp; END<BR>END</DIV>]]>
   </description>
   <pubDate>Tue, 28 Oct 2008 18:51:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42435&amp;title=png-toolbar-images-are-showing-too-small#42435</guid>
  </item> 
  <item>
   <title><![CDATA[PNG Toolbar images are showing too small : Hi, paste IDR_TOOLBAR resource...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42432&amp;title=png-toolbar-images-are-showing-too-small#42432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12554<br /><strong>Posted:</strong> 28 October 2008 at 4:51pm<br /><br /><P>Hi,</P><DIV>paste IDR_TOOLBAR resource from rc file here.</DIV>]]>
   </description>
   <pubDate>Tue, 28 Oct 2008 16:51:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42432&amp;title=png-toolbar-images-are-showing-too-small#42432</guid>
  </item> 
  <item>
   <title><![CDATA[PNG Toolbar images are showing too small : The images on toolbar are automatically...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42428&amp;title=png-toolbar-images-are-showing-too-small#42428</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 12554<br /><strong>Posted:</strong> 28 October 2008 at 2:28pm<br /><br /><P>The images on toolbar are automatically scaled down from 48x48 to 16x16, so I get something like this </P><P><img src="https://forum.codejock.com/uploads/20081028_142810_ToolBar_Problem.JPG" border="0"></P><P>the toolbar has 2 buttons (48x48), but both images appear on the first button.</P><DIV>&nbsp;</DIV><DIV>This is the toolbar source code:</DIV><FONT size=2><P>CXTPCommandBars* pCommandBars = GetCommandBars();</P><P>pCommandBars-&gt;SetMenu(_T(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Menu Bar"</FONT></FONT><FONT size=2>), IDR_MAIN_MENU);</P><P>CXTPToolBar* pToolBar = pCommandBars-&gt;Add(_T(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Main"</FONT></FONT><FONT size=2>), xtpBarBottom);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!pToolBar || !pToolBar-&gt;LoadToolBar(IDR_TOOLBAR, FALSE))</P><DIV>{</DIV><P>TRACE0(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Failed to create toolbar\n"</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P><P>}</P><P></P><P>XTPImageManager()-&gt;SetIcons(IDR_TOOLBAR, IDB_MAINTOOLBAR);</P><P>pCommandBars-&gt;SetTheme(xtpThemeOffice2007);</P><P>pCommandBars-&gt;GetCommandBarsOptions()-&gt;szLargeIcons = CSize(48, 48);</P><P>pCommandBars-&gt;GetCommandBarsOptions()-&gt;bLargeIcons = TRUE;</P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>Why the images are not displayed at their original size of&nbsp;48x48 pixels ?</FONT> <DIV><DIV></DIV><DIV></DIV>Thanks !</DIV>]]>
   </description>
   <pubDate>Tue, 28 Oct 2008 14:28:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12554&amp;PID=42428&amp;title=png-toolbar-images-are-showing-too-small#42428</guid>
  </item> 
 </channel>
</rss>