<?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 : MFC using xaml for HICON</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : XAML Snippets : MFC using xaml for HICON]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 19:11:22 +0000</pubDate>
  <lastBuildDate>Mon, 29 May 2023 08:43:02 +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=24397</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[MFC using xaml for HICON : Thanks for the reply. I guess...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24397&amp;PID=78704&amp;title=mfc-using-xaml-for-hicon#78704</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9607">Duane</a><br /><strong>Subject:</strong> 24397<br /><strong>Posted:</strong> 29 May 2023 at 8:43am<br /><br />Thanks for the reply.&nbsp; I guess my question was poorly worded.&nbsp; I am not specifically looking to convert an XAML into an HICON.&nbsp; I want to be able to use the XAML as the frame icon.&nbsp; I am able to use SetVectorIcon for the ribbon without problem.&nbsp; But the frame icon in the sample is using&nbsp;CXTPFramePaintManager.&nbsp; And this doesn't have a SetVectorIcon member.&nbsp;&nbsp;]]>
   </description>
   <pubDate>Mon, 29 May 2023 08:43:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24397&amp;PID=78704&amp;title=mfc-using-xaml-for-hicon#78704</guid>
  </item> 
  <item>
   <title><![CDATA[MFC using xaml for HICON : Hello Duane,It is possible to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24397&amp;PID=78702&amp;title=mfc-using-xaml-for-hicon#78702</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24397<br /><strong>Posted:</strong> 28 May 2023 at 3:40pm<br /><br />Hello Duane,<div><br></div><div>It is possible to make an HICON from XAML by rendering XAML into a bitmap and then making an icon from that bitmap manually. But that is not only a tedious work, but also a useless and pointless one as the whole point of having XAML icons is to ensure that you need only one XAML image to handle or possible icon sizes and to ensure a crisp and scalable image. Look for SetVectorIcon calls in ToolkitPro samples, like RibbonSample and similar.</div><div><br></div><div>Regards,</div><div>&nbsp; &nbsp;Alexander</div>]]>
   </description>
   <pubDate>Sun, 28 May 2023 15:40:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24397&amp;PID=78702&amp;title=mfc-using-xaml-for-hicon#78702</guid>
  </item> 
  <item>
   <title><![CDATA[MFC using xaml for HICON : How can I create an HICON from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24397&amp;PID=78697&amp;title=mfc-using-xaml-for-hicon#78697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9607">Duane</a><br /><strong>Subject:</strong> 24397<br /><strong>Posted:</strong> 19 May 2023 at 11:34am<br /><br /><div>How can I create an HICON from an&nbsp; XAML resource?</div><div><span style="white-space: normal;"><br></span></div><div><span style="white-space: normal;">I've tried</span></div><div><span style="white-space: normal;"><br></span></div><div><div style="">HICON hIcon = (HICON)::LoadImage(theApp.m_hInstance, MAKEINTRESOURCE(IDR_LOGO), IMAGE_ICON,&nbsp;szIcon.cx, szIcon.cy, LR_SHARED);</div></div><div style=""><br></div><div style="">But hIcon here is NULL.&nbsp;&nbsp;</div><div style=""><br></div><div style="">Is this possible?&nbsp; I am able to add that resource to an image vector and use it for a ribbon without problem.</div>]]>
   </description>
   <pubDate>Fri, 19 May 2023 11:34:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24397&amp;PID=78697&amp;title=mfc-using-xaml-for-hicon#78697</guid>
  </item> 
 </channel>
</rss>