<?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 : Strange EnableOffice2007Frame Problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Strange EnableOffice2007Frame Problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 03:50:17 +0000</pubDate>
  <lastBuildDate>Mon, 09 Apr 2007 07:15:33 +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=5951</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[Strange EnableOffice2007Frame Problem : Hello ... The problem is that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=21756&amp;title=strange-enableoffice2007frame-problem#21756</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=92">mber</a><br /><strong>Subject:</strong> 5951<br /><strong>Posted:</strong> 09 April 2007 at 7:15am<br /><br /><P>Hello ...</P><P>The problem is that the XTPOffice2007FrameHook doesn't work correctly if the CWnd::SetWindowPlacement() function is called after the EnableOffice2007Frame() function.</P><DIV>I have "fixed" it in our application by calling:<BR><BR><FONT color=#010001 size=2>m_pMainFrame</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>SetWindowPos</FONT><FONT size=2>(0, 0, 0, 0, 0, </FONT><FONT color=#010001 size=2>SWP_NOACTIVATE</FONT><FONT size=2> | </FONT><FONT color=#010001 size=2>SWP_NOMOVE</FONT><FONT size=2> | </FONT><FONT color=#010001 size=2>SWP_NOSIZE</FONT><FONT size=2> | </FONT><FONT color=#010001 size=2>SWP_NOZORDER</FONT><FONT size=2> | </FONT><FONT color=#010001 size=2>SWP_FRAMECHANGED</FONT><FONT size=2> | </FONT><FONT color=#010001 size=2>SWP_DRAWFRAME</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2><BR>after the SetWindowPlacement() call.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>It might be my misunderstanding how the XTPOffice2007FrameHook class works but&nbsp;the&nbsp;hook&nbsp;should handle a call to SetWindowPlacement() correctly.</FONT></DIV><DIV><FONT size=2><BR>Regards,</FONT></DIV><DIV><FONT size=2>-Mat</FONT></DIV><DIV><FONT size=2>SmartFTP</FONT></DIV><DIV><FONT size=2><a href="http://www.smartftp.com" target="_blank">http://www.smartftp.com</A></FONT></DIV><DIV><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Mon, 09 Apr 2007 07:15:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=21756&amp;title=strange-enableoffice2007frame-problem#21756</guid>
  </item> 
  <item>
   <title><![CDATA[Strange EnableOffice2007Frame Problem : Hello I don&amp;#039;t have the problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=21615&amp;title=strange-enableoffice2007frame-problem#21615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=92">mber</a><br /><strong>Subject:</strong> 5951<br /><strong>Posted:</strong> 01 April 2007 at 6:17pm<br /><br />Hello<DIV>I don't have the problem with the samples from Codejock. I compiled them with Unicode enabled. We don't use Armadillo and we are experiencing exactly the same problem. I will post a solution as soon as we have one.</DIV><DIV>Regards,</DIV><DIV>-Mat</DIV>]]>
   </description>
   <pubDate>Sun, 01 Apr 2007 18:17:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=21615&amp;title=strange-enableoffice2007frame-problem#21615</guid>
  </item> 
  <item>
   <title><![CDATA[Strange EnableOffice2007Frame Problem : No, I never got a resolution to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=21614&amp;title=strange-enableoffice2007frame-problem#21614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 5951<br /><strong>Posted:</strong> 01 April 2007 at 1:06pm<br /><br />No, I never got a resolution to this problem.&nbsp; I assume it is related to us using Unicode and Armadillo, and the codejock skin software&nbsp;does not work when either one is use.&nbsp; ]]>
   </description>
   <pubDate>Sun, 01 Apr 2007 13:06:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=21614&amp;title=strange-enableoffice2007frame-problem#21614</guid>
  </item> 
  <item>
   <title><![CDATA[Strange EnableOffice2007Frame Problem : I have a MFC SDI based application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=18712&amp;title=strange-enableoffice2007frame-problem#18712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 5951<br /><strong>Posted:</strong> 31 December 2006 at 9:32am<br /><br />I have a MFC SDI based application in which I am adding Office2007 frame and theme support.&nbsp; I added the EnableOffice2007Frame class to my mainfrm.h and have included the line <DIV>#include "Ribbon\Styles\Office2007Blue\Office2007Blue.rc" to the .rc2 file.</DIV><DIV>I enable the Office2007 frame as shown in the sample application.</DIV><DIV>&nbsp;</DIV><DIV>If I start the application, then select the Office2007 theme/frame then all is well.&nbsp; The title bar and the status bar looks as it should.&nbsp; However if I then exit the application with the Office 2007 theme/frame option selected, then start it again, the title bar is missing.&nbsp; If I move another application on top of the problem app, then the title bar appears and all is well.&nbsp; It appears that something is preventing the frame repaint on initial program start, but not after the application has started.</DIV><DIV>&nbsp;</DIV><DIV>Note that if I use the LoadSkin logic to set the Office2007 skin, this problem does not happen.</DIV><DIV>&nbsp;</DIV><DIV>Update:&nbsp; I have found that if I place the EnableOffice2007Frame() call after the window is visible (in the ShowWindowEx function) then it works as it should.&nbsp; This would indicate some type of problem in the EnableOffice2007 hook logic.</DIV><DIV>&nbsp;</DIV><DIV>Any ideas?</DIV>]]>
   </description>
   <pubDate>Sun, 31 Dec 2006 09:32:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5951&amp;PID=18712&amp;title=strange-enableoffice2007frame-problem#18712</guid>
  </item> 
 </channel>
</rss>