<?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 : WINVER=0x500 yields jagged icon in CXTPTaskDialog</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : WINVER=0x500 yields jagged icon in CXTPTaskDialog]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:07:13 +0000</pubDate>
  <lastBuildDate>Thu, 11 Jun 2009 19:54:19 +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=14405</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[WINVER=0x500 yields jagged icon in CXTPTaskDialog : Sorry for bothering you :P. It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49888&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 11 June 2009 at 7:54pm<br /><br />Sorry for bothering you :P. It turned out my stupid icon was loaded as 48x48, which caused a resize...<DIV>&nbsp;</DIV><DIV>Argh!</DIV><DIV>&nbsp;</DIV><DIV>Anyway, thanks for your assistance!</DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 19:54:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49888&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49888</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog : Ok, but in my application the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49882&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 11 June 2009 at 3:23pm<br /><br />Ok, but in my application the error is so obvious:<DIV>&nbsp;</DIV><DIV>I load the icon and put it in my ribbon, and it looks great! Then, I use the <strong>same HICON in a CXTPTaskDialog</strong> and it gets an ugly border.</DIV><DIV>Either it has been scaled, or it is drawn incorrectly!</DIV><DIV>&nbsp;</DIV><DIV>32x32 pixels...</DIV><DIV>&nbsp;</DIV><DIV>This is a fact.</DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 15:23:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49882&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49882</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog : Hi,  Just tried with CustomThemes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49877&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 11 June 2009 at 2:02pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Just tried with CustomThemes sample</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;HICON hIcon = NULL;<BR>&nbsp;UINT iconID = 0;<BR>&nbsp;if (ExtractIconEx("C:\\WINDOWS\\notepad.exe", 0, 0,&amp;hIcon, 1))<BR>&nbsp;{<BR>&nbsp;&nbsp;XTPImageManager()-&gt;SetIcon(hIcon, ID_FILE_OPEN);<BR>&nbsp;&nbsp;DestroyIcon(hIcon);<BR>&nbsp;}<BR></DIV><DIV>Works well.</DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 14:02:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49877&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49877</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog : Hi, It have to be included to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49875&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49875</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 11 June 2009 at 1:57pm<br /><br />Hi,<DIV>It have to be included to your exe - not to our dll.</DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 13:57:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49875&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49875</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog : It&amp;#039;s just like ComCtl32.dll...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49870&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 11 June 2009 at 11:27am<br /><br /><P>It's just like ComCtl32.dll v5.8 was being used... I don't get it! My code worked a couple of months ago...</P><DIV></DIV><DIV></DIV>Clearly, the manifest is not included in your dll. Just made a search for the public key token: <FONT color=#a31515 size=2><FONT color=#a31515 size=2>6595b64144ccf1df<DIV></DIV><DIV></DIV>Not found?</FONT></FONT>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 11:27:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49870&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49870</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog : This is really strange. I don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49867&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 11 June 2009 at 11:07am<br /><br />This is really strange. I don't think this has to do with CJ.<DIV>&nbsp;</DIV><DIV>If I load ico-files with this API, and then put them in your toolbars, the alpha layer seems to be lost!</DIV><DIV><a href="http://msdn.microsoft.com/en-us/library/ms648075.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms648075.aspx</A></DIV><DIV>&nbsp;</DIV><DIV>This worked a couple of months ago. Since then I've upgraded from 12.1.1 to 13.0.0. Perhaps MS updated a vital DLL somewhere? Don't get it...</DIV><DIV>&nbsp;</DIV><DIV>Could you please try this?</DIV><DIV>&nbsp;</DIV><DIV>HICON hIcon = NULL;<BR>&nbsp;&nbsp;UINT iconID = 0;<BR>&nbsp;&nbsp;if (PrivateExtractIcons("C:\\WINDOWS\\notepad.exe", 0, 16, 16, &amp;hIcon, &amp;iconID, 1, LR_COLOR))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;iconID = XTPImageManager()-&gt;AddCustomIcon(hIcon);<BR>&nbsp;&nbsp;&nbsp;pButton-&gt;SetIconId(iconID);<BR>&nbsp;&nbsp;&nbsp;DestroyIcon(hIcon);<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>The resulting image is screwed at the borders... <img src="https://forum.codejock.com/smileys/smiley5.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 11 Jun 2009 11:07:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49867&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49867</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog : Hi, We have standard DrawIconEx...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49457&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49457</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 29 May 2009 at 1:52am<br /><br /><P>Hi,</P><DIV>We have standard DrawIconEx API call to draw it. so problem can be only in icon or way you load it. Try add LR_CREATEDIBSECTION&nbsp; flag.</DIV>]]>
   </description>
   <pubDate>Fri, 29 May 2009 01:52:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49457&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49457</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog :  The icon is loaded via this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49441&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49441</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 28 May 2009 at 10:44am<br /><br /><FONT color=#010001 size=2><FONT color=#010001 size=2><P>The icon is loaded via this call: LoadImage</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>NULL</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>pFileName</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>IMAGE_ICON</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cxIcon</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cyIcon</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>flags</FONT></FONT><FONT size=2>);</P><DIV></DIV>Hmm, is this the root cause?</FONT>]]>
   </description>
   <pubDate>Thu, 28 May 2009 10:44:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49441&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49441</guid>
  </item> 
  <item>
   <title><![CDATA[WINVER=0x500 yields jagged icon in CXTPTaskDialog : I have a custom icon in my CXTPTaskDialog...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49439&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49439</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14405<br /><strong>Posted:</strong> 28 May 2009 at 10:21am<br /><br />I have a custom icon in my CXTPTaskDialog (<EM>not</EM> using Vista API). When I set WINVER=0x0500 the icon is drawn a la Windows 2000. The borders become jagged (i.e. no alpha blending). Note that I have included the needed manifest!<DIV>&nbsp;</DIV><DIV>I believe your dialog uses the native icon drawing functions. This causes a problem in the above scenario.</DIV>]]>
   </description>
   <pubDate>Thu, 28 May 2009 10:21:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14405&amp;PID=49439&amp;title=winver0x500-yields-jagged-icon-in-cxtptaskdialog#49439</guid>
  </item> 
 </channel>
</rss>