<?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 : [SOLVED] CXTPReportView trapped ID_FILE_PRINT</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] CXTPReportView trapped ID_FILE_PRINT]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 06:04:07 +0000</pubDate>
  <lastBuildDate>Tue, 14 Sep 2010 08:43:57 +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=17241</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[[SOLVED] CXTPReportView trapped ID_FILE_PRINT : Well ... after some investigation,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17241&amp;PID=60184&amp;title=solved-cxtpreportview-trapped-id-file-print#60184</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6370">Pat@Yahoo</a><br /><strong>Subject:</strong> 17241<br /><strong>Posted:</strong> 14 September 2010 at 8:43am<br /><br />Well ... after some investigation, I found my problem. <br><br>I overload the function OnCmdMsg and return false in the case where the nCode = 0 and other parameters to NULL ... here the code :<br><br>BOOL CViewReportTestsAndCalibrations::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)<br>{<br>&nbsp;&nbsp; if (nID == ID_FILE_PRINT)<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Print message has been sent ... do not process the command ... <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // let the system routes it to the frame/doc object <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( nCode == 0 &amp;&amp; pExtra == NULL &amp;&amp; pHandlerInfo == NULL )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return FALSE;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Otherwise return true to activate the ID_FILE_PRINT button ... (patch)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp; }<br><br>&nbsp;&nbsp; return CXTPReportView::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);<br>}<br><br>Regards ...<br>PA<br>]]>
   </description>
   <pubDate>Tue, 14 Sep 2010 08:43:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17241&amp;PID=60184&amp;title=solved-cxtpreportview-trapped-id-file-print#60184</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] CXTPReportView trapped ID_FILE_PRINT :  Hi all,I have a MDI application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17241&amp;PID=60180&amp;title=solved-cxtpreportview-trapped-id-file-print#60180</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6370">Pat@Yahoo</a><br /><strong>Subject:</strong> 17241<br /><strong>Posted:</strong> 14 September 2010 at 7:31am<br /><br />Hi all,<br><br>I have a MDI application which one of the view is a derived class of CXTPReportView.<br>My application have a (ID_FILE_PRINT) print button on the toolbar which is handled <br>by the application (not the view) to print formatted reports. <br><br>My problem is that if a record item is selected in the CXTPReportView (control), the ID_FILE_PRINT<br>is sent to the report view/control and my print function is not called (the default print<br>is called from the class CXTPReportView).<br><br>How can I make my CXTPReportView derived class not be called when the ID_FILE_PRINT<br>button is pressed?<br><br>I've tried to reflect the control command (ID_FILE_PRINT) but still have the same behavior<br>(I'm still receiving the the command message).<br><br>I need some help ... <br>Thanks,<br>PA<br><br><br>]]>
   </description>
   <pubDate>Tue, 14 Sep 2010 07:31:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17241&amp;PID=60180&amp;title=solved-cxtpreportview-trapped-id-file-print#60180</guid>
  </item> 
 </channel>
</rss>