<?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 : print preview issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : print preview issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 19:31:35 +0000</pubDate>
  <lastBuildDate>Tue, 23 Oct 2007 14:58:08 +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=8467</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[print preview issue : Hi,  if CMainFrame is CXTPMDIFrameWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27590&amp;title=print-preview-issue#27590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 23 October 2007 at 2:58pm<br /><br />Hi, <DIV>if CMainFrame is CXTPMDIFrameWnd derived calss just call its OnSetPreviewMode method instead of CMDIFrameWnd.</DIV>]]>
   </description>
   <pubDate>Tue, 23 Oct 2007 14:58:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27590&amp;title=print-preview-issue#27590</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : Hi, could you please give me some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27588&amp;title=print-preview-issue#27588</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3310">Pearl</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 23 October 2007 at 1:03pm<br /><br />Hi, could you please give me some hints how can I resolve this problem if I have to overwrite OnSetPreviewMode()? <DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>Pearl</DIV>]]>
   </description>
   <pubDate>Tue, 23 Oct 2007 13:03:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27588&amp;title=print-preview-issue#27588</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : Hi, thanks for your patience....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27538&amp;title=print-preview-issue#27538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3310">Pearl</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 22 October 2007 at 1:16pm<br /><br />Hi, thanks for your patience. I have to say sorry that I made a mistake when I was checking the code for OnSetPreviewMode. There do have an overwitre OnSetPreviewMode in the code. It is attached as the following:<DIV>&nbsp;</DIV><DIV>void CMainFrame::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState* pState) <BR>{<BR>&nbsp;AfxSetResourceHandle( AfxGetInstanceHandle() );<BR>&nbsp;CMDIFrameWnd::OnSetPreviewMode(bPreview, pState);</DIV><DIV>&nbsp; if (bPreview) {<BR>&nbsp;&nbsp;CMenu preview_menu;<BR>&nbsp;&nbsp;preview_menu.LoadMenu( MAKEINTRESOURCE( IDR_PRINTPREVIEW) );<BR>&nbsp;&nbsp;&nbsp; SetMenu(&amp;preview_menu);<BR>&nbsp;&nbsp;&nbsp; m_hAccelTable = NULL;<BR>&nbsp;&nbsp;&nbsp; LoadAccelTable(MAKEINTRESOURCE(IDR_PRINT_PREVIEW_ACCEL));<BR>&nbsp; }<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Right, if I comment out this one, the commandbar will disappear on PrintPreview page. However, the problem is I do need to overwite OnSetPreviewMode(), because originally Print Preview page has a customized menu there, and I am not supposed to change the way it works.</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your help</DIV><DIV>&nbsp;</DIV><DIV>Pearl</DIV>]]>
   </description>
   <pubDate>Mon, 22 Oct 2007 13:16:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27538&amp;title=print-preview-issue#27538</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : Hi,  Send to support@codejock.com...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27484&amp;title=print-preview-issue#27484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 20 October 2007 at 2:09am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Send to <a href="mailto:support@codejock.com" target="_blank">support@codejock.com</A> sample to show what you do. I have no idea what you do,&nbsp;so can't suggest how to fix it.</DIV>]]>
   </description>
   <pubDate>Sat, 20 Oct 2007 02:09:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27484&amp;title=print-preview-issue#27484</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : Ok, let me clarify my problems....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27476&amp;title=print-preview-issue#27476</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3310">Pearl</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 19 October 2007 at 4:17pm<br /><br />Ok, let me clarify my problems. I do have a customized IDR_PRINTPREVIEW menu in the resource, once PrintPreview clicked, that menu will automatically appeared on the top of the printPreiew page.&nbsp;The thing is even when I remove that menu from the resource, that menu is not there but the commandbar is still there. Therefor, my first&nbsp;question is how can I hide that commandbar on the PrintPreview page, and the second question is that actually I do need a customized IDR_PRINTPREVIEW menu on the top of the PrintPreview page, from your codejock samples there are no any menus on the PrintPreview page, so I don't know how to add one there?<DIV>&nbsp;</DIV><DIV>Thanks for your help</DIV><DIV>&nbsp;</DIV><DIV>Pearl</DIV>]]>
   </description>
   <pubDate>Fri, 19 Oct 2007 16:17:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27476&amp;title=print-preview-issue#27476</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : I see you have standard File and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27469&amp;title=print-preview-issue#27469</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 19 October 2007 at 3:17pm<br /><br />I see you have standard File and Help menus. so obviously you do something wrong in your code. Copy code from our samples to make it work same.]]>
   </description>
   <pubDate>Fri, 19 Oct 2007 15:17:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27469&amp;title=print-preview-issue#27469</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : i, I check the code, actually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27467&amp;title=print-preview-issue#27467</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3310">Pearl</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 19 October 2007 at 12:42pm<br /><br />i, I check the code, actually OnSetPreviewMode&nbsp; wasn't being overwrited, and CXTPFrameWnd wasn't applied either. Could you please inform me what I will check next step? Thanks a lot for your help!<DIV>&nbsp;</DIV><DIV>Pearl</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 19 Oct 2007 12:42:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27467&amp;title=print-preview-issue#27467</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : Hi,  Check may be you override...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27438&amp;title=print-preview-issue#27438</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 19 October 2007 at 12:44am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Check may be you override CMainFrame::OnSetPreviewMode method and don't call base CXTPFrameWnd method.</DIV>]]>
   </description>
   <pubDate>Fri, 19 Oct 2007 00:44:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27438&amp;title=print-preview-issue#27438</guid>
  </item> 
  <item>
   <title><![CDATA[print preview issue : Hi  I got print preview issue...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27430&amp;title=print-preview-issue#27430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3310">Pearl</a><br /><strong>Subject:</strong> 8467<br /><strong>Posted:</strong> 18 October 2007 at 4:25pm<br /><br /><DIV></DIV>Hi<DIV>&nbsp;</DIV><DIV>I got print preview issue when I try to use codejock to reskin my MFC 6.0 application. When I click Print Preview, the print preview page looks wierd like the following. I wonder how can I hide the command bar at this moment and still enable the commandbar after I close the print preview. Actually I check the codejock samples, when I click print preview, it did hide the commandbar on the mainframe, in the code it only called CView::OnFilePrintPreview, which is the same as I did, I can't see any special processing on the commandbar though. Thanks for your help! Pearl</DIV><DIV><img src="https://forum.codejock.com/uploads/20071018_161948_print.JPG" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 18 Oct 2007 16:25:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8467&amp;PID=27430&amp;title=print-preview-issue#27430</guid>
  </item> 
 </channel>
</rss>