<?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 : CXTPPropertySheet resource problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPPropertySheet resource problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 09:41:43 +0000</pubDate>
  <lastBuildDate>Tue, 08 Mar 2022 05:24:54 +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=24268</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[CXTPPropertySheet resource problem : Hello,I added virtual specifier...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24268&amp;PID=78404&amp;title=cxtppropertysheet-resource-problem#78404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 24268<br /><strong>Posted:</strong> 08 March 2022 at 5:24am<br /><br />Hello,<br><br>I added virtual specifier for LoadTemplate functions as you asked.<br><br>Regards,<br>Artem Gontarenko]]>
   </description>
   <pubDate>Tue, 08 Mar 2022 05:24:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24268&amp;PID=78404&amp;title=cxtppropertysheet-resource-problem#78404</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertySheet resource problem : I need to useCXTPPropertySheet...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24268&amp;PID=78392&amp;title=cxtppropertysheet-resource-problem#78392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8906">andreypir</a><br /><strong>Subject:</strong> 24268<br /><strong>Posted:</strong> 04 February 2022 at 8:21pm<br /><br />I need to use&nbsp;CXTPPropertySheet to display property pages implemented in several modules (.dll). However, the way CXTPPropertySheet is implemented it assumes all CXTPPropertyPage objects added to it load their templates from the same module.<br><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><span style="font-style:italic;color:#216f85;">CXTPPropertySheet</span>::<span style="color:#880000;">CreateClient</span>() <span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; white-space: normal;">calls&nbsp;</span>pPage-&gt;<span style="font-style: italic; color: rgb136, 0, 0;">LoadTemplate</span>() for each page and fails if any of them fails. <pre style="font-family: C&#111;nsolas; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><span style="font-style:italic;color:#216f85;">CXTPPropertyPage</span><span style="color:#74531f;">::</span><span style="color:#880000;">LoadTemplate() </span>uses a singleton XTPResourceManager() to find the dialog template. And so there is no way to set different resource instances for different pages.</pre><pre style="font-family: C&#111;nsolas; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;">A simple solution is to declare CXTPPropertyPage<span style="color: rgb116, 83, 31;">::</span><span style="color: rgb136, 0, 0;">LoadTemplate() </span>or CXTPPropertyPage<span style="color: rgb116, 83, 31;">::</span><span style="color: rgb136, 0, 0;">LoadTemplate</span>(<span style="color: rgb33, 111, 133;">HGLOBAL</span>&amp;&nbsp;<span style="color: navy;">hTemplate</span>,&nbsp;<span style="color: rgb33, 111, 133;">HINSTANCE</span>&amp;&nbsp;<span style="color: navy;">hInst</span>) virtual. That wouldallow me to overload it in the derived class and set proper handle to XTPResourceManager().</pre><pre style="font-family: C&#111;nsolas; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"></pre><pre style="font-family: C&#111;nsolas; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"></pre></pre><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"> </pre>]]>
   </description>
   <pubDate>Fri, 04 Feb 2022 20:21:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24268&amp;PID=78392&amp;title=cxtppropertysheet-resource-problem#78392</guid>
  </item> 
 </channel>
</rss>