<?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 : Not show the dialog with &#146;Report ctrl&#146;.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Not show the dialog with &#146;Report ctrl&#146;.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:39:19 +0000</pubDate>
  <lastBuildDate>Tue, 17 Jan 2006 03:32:56 +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=3514</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[Not show the dialog with &#146;Report ctrl&#146;. :  Just call RegisterWindowClass...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10557&amp;title=not-show-the-dialog-with-report-ctrl#10557</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 17 January 2006 at 3:32am<br /><br /><P>&nbsp;</P><P>Just call RegisterWindowClass in constructor of dialog. Think you don't need to call XTPResourceManager()-&gt;SetResourceHandle</P>]]>
   </description>
   <pubDate>Tue, 17 Jan 2006 03:32:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10557&amp;title=not-show-the-dialog-with-report-ctrl#10557</guid>
  </item> 
  <item>
   <title><![CDATA[Not show the dialog with &#146;Report ctrl&#146;. : Hi Oleg and Serge, Thank you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10555&amp;title=not-show-the-dialog-with-report-ctrl#10555</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1406">mtsanji</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 17 January 2006 at 1:49am<br /><br /><P>Hi Oleg and Serge,</P><P>Thank you for your help.</P><P>If I add the CReportControl::RegisterWindowClass(&lt;resouce handle&gt;) to the dialog constructer and the dialog is displayed.</P><P>I tried to change the source code to use 'XTPResourceManager()-&gt;SetResourceHandle(hRes)' instead of the above but, it didn't work. It seems that the application cannot replace the resource handle.</P><P>sample: <A href="https://forum.codejock.com/uploads/mtsanji/2006-01-17_014739_Sample.zip" target="_blank">2006-01-17_014739_Sample.zip</A></P><P>Is there any way to solve this problem except using the new RegisterWindowClass?</P><P>Thank you.</P><P>Sanji.</P><P>* Sorry for the attached "readme.txt" that included Japanese charactors...</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 17 Jan 2006 01:49:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10555&amp;title=not-show-the-dialog-with-report-ctrl#10555</guid>
  </item> 
  <item>
   <title><![CDATA[Not show the dialog with &#146;Report ctrl&#146;. : Hi Sanji,There is no need to change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10546&amp;title=not-show-the-dialog-with-report-ctrl#10546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 16 January 2006 at 2:35pm<br /><br />Hi Sanji,<br><br>There is no need to change library source by yourself. <br>In this case just change the following string in your Sample.cpp:<br>&nbsp;&nbsp;&nbsp; if (NULL != hRes) AfxSetResourceHandle(hRes);<br>to<br>&nbsp;&nbsp;&nbsp; XTPResourceManager()-&gt;SetResourceHandle(hRes);<br>&nbsp;&nbsp; &nbsp;<br>Please note that the ReportControl (and others) use XTPResourceManager to load resources instead of MFC or API functions.<br>For more details see CXTPResourceManager class documentation.<br><br>--<br>Best regards,<br>Serge <br>]]>
   </description>
   <pubDate>Mon, 16 Jan 2006 14:35:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10546&amp;title=not-show-the-dialog-with-report-ctrl#10546</guid>
  </item> 
  <item>
   <title><![CDATA[Not show the dialog with &#146;Report ctrl&#146;. : in last versions we added parameter BOOL...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10543&amp;title=not-show-the-dialog-with-report-ctrl#10543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 16 January 2006 at 11:54am<br /><br /><P>in last versions we added parameter</P><P><BR>BOOL CXTPReportControl::RegisterWindowClass(HINSTANCE hInstance /*= NULL*/)<BR>{<BR>&nbsp;WNDCLASS wndcls;<BR>&nbsp;if (hInstance == NULL) hInstance = AfxGetInstanceHandle();<BR>&nbsp;</P><P>&nbsp;</P><P>to allow call it with another instance.</P><P>I can only suggest you to change sources now. </P>]]>
   </description>
   <pubDate>Mon, 16 Jan 2006 11:54:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10543&amp;title=not-show-the-dialog-with-report-ctrl#10543</guid>
  </item> 
  <item>
   <title><![CDATA[Not show the dialog with &#146;Report ctrl&#146;. : Hi, The dialog that include &amp;#034;Report&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10539&amp;title=not-show-the-dialog-with-report-ctrl#10539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1406">mtsanji</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 16 January 2006 at 2:59am<br /><br /><P>Hi,</P><P>The dialog that include "Report" control doesn't display, if I use the resorce dll which I created for local use.</P><P>So far, I found that if I register the "Instance handle" and "Resouce Handle" to the windows class in CXTPReportControl::ResigterWindowClass, this problem does not occur. (Please see the code below)</P><P>Do I have to do some thing special if I want to&nbsp; use the external resource file?<BR>I don't want to change the Xtream library by my self.</P><P>Thanks,</P><P>Sanji</P><P>*1). I attach the code to see the problem. <A href="https://forum.codejock.com/uploads/mtsanji/2006-01-16_025026_Sample.zip" target="_blank">2006-01-16_025026_Sample.zip</A>&nbsp;(See the "readme.txt") </P><P>*2). If I made the following changes to "CXTPReportControl" (see below), the dialog displays.</P><P>----------------------<BR>BOOL CXTPReportControl::RegisterWindowClass()<BR>{<BR>&nbsp;WNDCLASS wndcls;<BR>&nbsp;HINSTANCE hInst = AfxGetInstanceHandle();<BR>&nbsp;if (!(::GetClassInfo(hInst, XTPREPORTCTRL_CLASSNAME, &amp;wndcls)))<BR>&nbsp;{<BR>&nbsp;&nbsp;// otherwise we need to register a new class<BR> &nbsp;&nbsp;wndcls.style&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;<BR>&nbsp;&nbsp;.....<BR>&nbsp;}</P><P>&nbsp;// &lt;&lt;&lt;&lt; Added following code... &gt;&gt;&gt;&gt;<BR>&nbsp;hInst = AfxGetResourceHandle();<BR>&nbsp;if (!(::GetClassInfo(hInst, XTPREPORTCTRL_CLASSNAME, &amp;wndcls)))<BR>&nbsp;{<BR>&nbsp;&nbsp;// otherwise we need to register a new class<BR> &nbsp;&nbsp;wndcls.style&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;<BR>&nbsp;&nbsp;.....<BR>&nbsp;}</P><P>&nbsp;return TRUE;<BR>}<BR>----------------------<BR></P>]]>
   </description>
   <pubDate>Mon, 16 Jan 2006 02:59:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3514&amp;PID=10539&amp;title=not-show-the-dialog-with-report-ctrl#10539</guid>
  </item> 
 </channel>
</rss>