<?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 : About OnSetPreviewMode</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : About OnSetPreviewMode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 10:19:00 +0000</pubDate>
  <lastBuildDate>Wed, 25 Mar 2009 11:34:52 +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=13725</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[About OnSetPreviewMode :  void CMainFrame::OnSetPreviewMode(BOOL...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=47115&amp;title=about-onsetpreviewmode#47115</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 13725<br /><strong>Posted:</strong> 25 March 2009 at 11:34am<br /><br /><i>void CMainFrame::OnSetPreviewMode(BOOL bPreview, CPrintPreviewState *pState)<br>{<br>&nbsp;&nbsp; // Toggle CommandBars<br>&nbsp;&nbsp; GetCommandBars()-&gt;OnSetPreviewMode(bPreview);<br><br>&nbsp;&nbsp; // Toggle Tab Client<br>&nbsp;&nbsp; <font color="#ff0000">m_wndClient.ShowWorkspace(!bPreview);</font><br><br>&nbsp;&nbsp; // Toggle Docking Panes.<br>&nbsp;&nbsp; <font color="#ff0000">m_dockingPaneFactory.GetPaneManager().OnSetPreviewMode(bPreview);</font><br><br>#if _MSC_VER &lt; 1400<br>&nbsp;&nbsp; inherited::OnSetPreviewMode(bPreview, pState);<br>#endif<br>}</i><br><br>Of course you have to change the lines in red.<br><br><br>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 11:34:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=47115&amp;title=about-onsetpreviewmode#47115</guid>
  </item> 
  <item>
   <title><![CDATA[About OnSetPreviewMode :    zaozao wrote:Please teach...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46914&amp;title=about-onsetpreviewmode#46914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 13725<br /><strong>Posted:</strong> 19 March 2009 at 11:14pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by zaozao" alt="Originally posted by zaozao" style="vertical-align: text-bottom;" /> <strong>zaozao wrote:</strong><br /><br />Please teach me how to hide commandbars&nbsp;with Visual Studio.net2003.</td></tr></table><br><br>Had the same problem, will post our solution in a few hours. (Don't have the source at home)<br><br><a href="http://forum.codejock.com/forum_posts.asp?TID=12286" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=12286</a><br>]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 23:14:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46914&amp;title=about-onsetpreviewmode#46914</guid>
  </item> 
  <item>
   <title><![CDATA[About OnSetPreviewMode : Thank you oleg.  But I cannot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46890&amp;title=about-onsetpreviewmode#46890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4952">zaozao</a><br /><strong>Subject:</strong> 13725<br /><strong>Posted:</strong> 19 March 2009 at 3:37am<br /><br /><DIV>Thank you oleg.</DIV><DIV>&nbsp;</DIV><DIV>But I cannot solve this problem yet.</DIV><DIV>Because I used your sample projects,&nbsp;I don't know how can I create standard MFC project.</DIV><DIV>&nbsp;</DIV><DIV>Have you&nbsp;ever&nbsp;build the sample project(ex. PrintPreview sample)&nbsp;with Visual Studio.net 2003 and confirmed the preview screen?</DIV><DIV>&nbsp;</DIV><DIV>Please tell me about concrete creating method.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 03:37:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46890&amp;title=about-onsetpreviewmode#46890</guid>
  </item> 
  <item>
   <title><![CDATA[About OnSetPreviewMode : Hi,  Its thing of Visual Studio...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46879&amp;title=about-onsetpreviewmode#46879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13725<br /><strong>Posted:</strong> 19 March 2009 at 1:51am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Its thing of Visual Studio .NET - create standard MFC project and you will see same.</DIV>]]>
   </description>
   <pubDate>Thu, 19 Mar 2009 01:51:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46879&amp;title=about-onsetpreviewmode#46879</guid>
  </item> 
  <item>
   <title><![CDATA[About OnSetPreviewMode : Hi.  I have a trouble in a print...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46852&amp;title=about-onsetpreviewmode#46852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4952">zaozao</a><br /><strong>Subject:</strong> 13725<br /><strong>Posted:</strong> 18 March 2009 at 11:28am<br /><br />Hi.<DIV>&nbsp;</DIV><DIV>I have a trouble in a print preview.</DIV><DIV>&nbsp;</DIV><DIV>I built the sample project(Skin MDI Sample and Print Preview Sample) with Visual Studio.net2003.</DIV><DIV>When print preview mode has been enabled, commandbars was not hide.</DIV><DIV>&nbsp;</DIV><DIV>In the project, CMainFrame::OnSetPreviewMode()&nbsp;wasn't called. <BR></DIV><DIV>&nbsp;</DIV><DIV>By the way, When I built&nbsp;the project&nbsp;with Visual Studi 6.0, CMainFrame::OnSetPreviewMode() was called. </DIV><DIV>And commandbars was hide.<BR></DIV><DIV>&nbsp;</DIV><DIV>Please teach me how to hide commandbars&nbsp;with Visual Studio.net2003.</DIV>]]>
   </description>
   <pubDate>Wed, 18 Mar 2009 11:28:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13725&amp;PID=46852&amp;title=about-onsetpreviewmode#46852</guid>
  </item> 
 </channel>
</rss>