<?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 : Unable to display icon for item - Part 2</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : Unable to display icon for item - Part 2]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 09:48:01 +0000</pubDate>
  <lastBuildDate>Sun, 18 Feb 2007 12:31:36 +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=6441</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[Unable to display icon for item - Part 2 : oh.. it could be the answer..  thank...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6441&amp;PID=20522&amp;title=unable-to-display-icon-for-item-part-2#20522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2771">iron1103</a><br /><strong>Subject:</strong> 6441<br /><strong>Posted:</strong> 18 February 2007 at 12:31pm<br /><br />oh..&nbsp; it could be the answer..<DIV>&nbsp;</DIV><DIV>thank you..&nbsp; i will check my bitmap files</DIV>]]>
   </description>
   <pubDate>Sun, 18 Feb 2007 12:31:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6441&amp;PID=20522&amp;title=unable-to-display-icon-for-item-part-2#20522</guid>
  </item> 
  <item>
   <title><![CDATA[Unable to display icon for item - Part 2 : Hi, If yo use CXTPImageManagerIconHandle...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6441&amp;PID=20502&amp;title=unable-to-display-icon-for-item-part-2#20502</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6441<br /><strong>Posted:</strong> 16 February 2007 at 9:12am<br /><br />Hi,<DIV>If yo use CXTPImageManagerIconHandle xtpicon( hbmp ); ImageManager assumes that hbmp&nbsp; is 32bit alpha bitmap.</DIV>]]>
   </description>
   <pubDate>Fri, 16 Feb 2007 09:12:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6441&amp;PID=20502&amp;title=unable-to-display-icon-for-item-part-2#20502</guid>
  </item> 
  <item>
   <title><![CDATA[Unable to display icon for item - Part 2 : Hi,  Here is my problem, when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6441&amp;PID=20501&amp;title=unable-to-display-icon-for-item-part-2#20501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2771">iron1103</a><br /><strong>Subject:</strong> 6441<br /><strong>Posted:</strong> 16 February 2007 at 7:05am<br /><br /><DIV><img src="https://forum.codejock.com/smileys/smiley12.gif" border="0">&nbsp;Hi,</DIV><DIV>&nbsp;</DIV><DIV>Here is my problem, when I use SetIcon() in this way, it works fine,</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>CXTPTaskPanelGroupItem *pItem;</DIV><DIV>CXTPImageManagerIconHandle hicon( AfxGetApp()-&gt;LoadIcon(IDI_ICON) );<BR>m_TaskPanel.GetImageManager()-&gt;SetIcon( hicon, pItem-&gt;GetID() );</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>But in this way, it won't display the icon,</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>CXTPTaskPanelGroupItem *pItem;</DIV><DIV>HICON hicon = AfxGetApp()-&gt;LoadIcon(IDI_VEC);</DIV><DIV>HBITMAP hbmp = MyFunction( hicon );</DIV><DIV>CXTPImageManagerIconHandle xtpicon( hbmp );</DIV><DIV>m_TaskPanel.GetImageManager()-&gt;SetIcon( xtpicon, pItem-&gt;GetID() );</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>And I chased the source code,</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>CXTPImageManagerIcon::PreMultiplyAlphaBitmap()</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp; TRY</DIV><DIV>&nbsp;&nbsp; {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hBitmapAlpha = CreateDIBSection(dcSrc, pBitmapInfo, DIB_RGB_COLORS, (void**)&amp;pDest, NULL, 0);</DIV><DIV>&nbsp;&nbsp; }</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>I use CDC.BitBlt() to see the hBitmapAlpha, it's totally black.</DIV><DIV>&nbsp;</DIV><DIV>Did I miss something ??&nbsp; Please help me.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/smileys/smiley36.gif" border="0">&nbsp;Happy Chinese New Year !!</DIV>]]>
   </description>
   <pubDate>Fri, 16 Feb 2007 07:05:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6441&amp;PID=20501&amp;title=unable-to-display-icon-for-item-part-2#20501</guid>
  </item> 
 </channel>
</rss>