<?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 : Alpha ic&#111;ns look bad in Disabled state</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Alpha ic&#111;ns look bad in Disabled state]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 17:50:44 +0000</pubDate>
  <lastBuildDate>Thu, 21 Jul 2005 23:21:32 +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=2611</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[Alpha ic&#111;ns look bad in Disabled state : Right :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7792&amp;title=alpha-icons-look-bad-in-disabled-state#7792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2611<br /><strong>Posted:</strong> 21 July 2005 at 11:21pm<br /><br />Right :)]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 23:21:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7792&amp;title=alpha-icons-look-bad-in-disabled-state#7792</guid>
  </item> 
  <item>
   <title><![CDATA[Alpha ic&#111;ns look bad in Disabled state : Thanks for the quick response!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7785&amp;title=alpha-icons-look-bad-in-disabled-state#7785</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1333">Stephen12</a><br /><strong>Subject:</strong> 2611<br /><strong>Posted:</strong> 21 July 2005 at 10:45am<br /><br /><P>Thanks for the quick response! I've got to apologize. I found what the problem was and I didn't even post the problem right.</P><P>Icons are alpha blended, however it was the way they were loaded that was causing the problem.&nbsp; I made a mistake&nbsp;when I was trying to put them in your CommandBarsIcon example to try with icon that I already processed with some tools and made them non-alpha (That is why bad look with SetIcon(resourceId, commandID<IMG src="http://forum.codejock.com/smileys/smiley9.gif" border="0">).&nbsp; The rest from the problem was OK.</P><P>&nbsp;I discovered that because when I tried some more that I was going to send you in reply&nbsp;they worked. But, they didn't work in my app because of the way of loading from file. I couldn't use resources so I opened them with LoadImage and passed the handle to your SetIcon:</P><P><FONT face="Courier New, Courier, mono" size=2>HICON hIcon = (HICON) LoadImage(NULL, sFilename,</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>IMAGE_ICON, 0, 0, LR_DEFAULTSIZE |LR_LOADFROMFILE);</FONT></P><P><FONT size=2><FONT face="Courier New">if(hIcon) </FONT><FONT face="Courier New">XTPImageManager()-&gt;SetIcon(hIcon, ID_BLAHBLAH);</FONT></FONT></P><P><FONT face="Courier New" size=2></FONT>&nbsp;</P><P>, while proper way was this:</P><P><FONT face="Courier New, Courier, mono" size=2> XTPImageManager()-&gt;SetIcon(CXTPImageManagerIconHandle(CXT PImageManagerIcon::LoadAlphaIcon(sFileName,  0)), ID_BLAHBLAH);</FONT></P><P><FONT size=2>Regards</P></FONT>]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 10:45:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7785&amp;title=alpha-icons-look-bad-in-disabled-state#7785</guid>
  </item> 
  <item>
   <title><![CDATA[Alpha ic&#111;ns look bad in Disabled state : Are you sure you have &amp;#034;alphablended&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7775&amp;title=alpha-icons-look-bad-in-disabled-state#7775</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2611<br /><strong>Posted:</strong> 21 July 2005 at 7:54am<br /><br />Are you sure you have "alphablended" icons? Please attach one here to see.]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 07:54:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7775&amp;title=alpha-icons-look-bad-in-disabled-state#7775</guid>
  </item> 
  <item>
   <title><![CDATA[Alpha ic&#111;ns look bad in Disabled state : Platform:XTpro 9.6, Win XP SP2,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7768&amp;title=alpha-icons-look-bad-in-disabled-state#7768</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1333">Stephen12</a><br /><strong>Subject:</strong> 2611<br /><strong>Posted:</strong> 20 July 2005 at 3:59pm<br /><br /><P>Platform:&nbsp;XTpro 9.6, Win XP SP2, VS2003</P><P>Problem: I am trying to use alphablended icons from (.ICO) files. They work as expected in a normal state on Whidbey and Office2003, but they look bad when they are disabled (They have black pixels around them). I have </P><P>&nbsp;bUseDisabledIcons = TRUE</P><P>&nbsp;</P><P>What did I try?</P><P>I took some of this icons and brought them into your CommandBarsIcon sample as a resource and set them for some of the MenuItems using</P><P>SetIcon(nResouceID, nCommandID)</P><P>&nbsp;</P><P>&nbsp;They look the same as in my app (bad - again, only when they are disabled) while alpha icons you have in that sample look good . I was going to compare colors and opacity of pixels, but I cannot open your alphaclr.bmp file with VS2003 resource editor (&gt;256 colors), nor with your Designer Studio. I played also with SetMaskColor using black instead of your default green, but that didn't give me a desired result.</P><P>I would appreciate any help on this.</P><P>Thanks in advance</P>]]>
   </description>
   <pubDate>Wed, 20 Jul 2005 15:59:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2611&amp;PID=7768&amp;title=alpha-icons-look-bad-in-disabled-state#7768</guid>
  </item> 
 </channel>
</rss>