<?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 : CWindowRect() and Office/2007 theme.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CWindowRect() and Office/2007 theme.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 09 Apr 2026 09:43:35 +0000</pubDate>
  <lastBuildDate>Thu, 05 Mar 2020 12:21:30 +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=17240</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[CWindowRect() and Office/2007 theme. : Hi,I have the same problem, plus...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=77639&amp;title=cwindowrect-and-office-2007-theme#77639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 17240<br /><strong>Posted:</strong> 05 March 2020 at 12:21pm<br /><br /><div>Hi,</div><div><br></div><div>I have the same problem, plus a 8 pixel different in the width .</div><div>I have no idea where this comes from?! <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" alt="C&#111;nfused" title="C&#111;nfused" /></div><div><br></div><div>EDIT: I use Office2013 theme!<br></div>]]>
   </description>
   <pubDate>Thu, 05 Mar 2020 12:21:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=77639&amp;title=cwindowrect-and-office-2007-theme#77639</guid>
  </item> 
  <item>
   <title><![CDATA[CWindowRect() and Office/2007 theme. : Yes, we use version control -...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=60171&amp;title=cwindowrect-and-office-2007-theme#60171</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 17240<br /><strong>Posted:</strong> 13 September 2010 at 4:33pm<br /><br />Yes, we use version control - we use TFS, and our server is somewhere in the cloud in a level 3 server farm.&nbsp; We just have some old school guys that pre-date version control (and Windows) who like to leave little remarks.&nbsp; It's harmless (occasionally helpful) and not worth the 'religious' war I'd start if I tried to get them to change.&nbsp; I prefer Araxis Merge and "View History" if, on that rare occasion, I need to see what changed version to version.&nbsp;&nbsp; You can tell that it's an old-school guy from the question, though, because nobody else would just add an arbitrary number as a 'fix', either. <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"><DIV>&nbsp;</DIV><DIV>Anyway, any ideas about the 'real' problem?</DIV><DIV>&nbsp;</DIV><DIV>- David</DIV>]]>
   </description>
   <pubDate>Mon, 13 Sep 2010 16:33:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=60171&amp;title=cwindowrect-and-office-2007-theme#60171</guid>
  </item> 
  <item>
   <title><![CDATA[CWindowRect() and Office/2007 theme. :    ddlittle wrote:s.Format(&amp;#034;%d,%d,%d,%d&amp;#034;,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=60170&amp;title=cwindowrect-and-office-2007-theme#60170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 17240<br /><strong>Posted:</strong> 13 September 2010 at 3:17pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by ddlittle" alt="Originally posted by ddlittle" style="vertical-align: text-bottom;" /> <strong>ddlittle wrote:</strong><br /><br /><div><font face="Courier New, Courier, mono"><font size="2" color="#020002"><font size="2" color="#020002">s</font></font><font size="2">.</font><font size="2" color="#020002"><font size="2" color="#020002">Format</font></font><font size="2">(</font><font size="2" color="#a31515"><font size="2" color="#a31515">"%d,%d,%d,%d"</font></font><font size="2">, </font><font size="2" color="#020002"><font size="2" color="#020002">r</font></font><font size="2">.</font><font size="2" color="#020002"><font size="2" color="#020002">left</font></font><font size="2">,</font><font size="2" color="#020002"><font size="2" color="#020002">r</font></font><font size="2">.</font><font size="2" color="#020002"><font size="2" color="#020002">top</font></font><font size="2">,</font><font size="2" color="#020002"><font size="2" color="#020002">r</font></font><font size="2">.</font><font size="2" color="#020002"><font size="2" color="#020002">Width</font></font><font size="2">(),</font><font size="2" color="#020002"><font size="2" color="#020002">r</font></font><font size="2">.</font><font size="2" color="#020002"><font size="2" color="#020002">Height</font></font><font size="2">()+4); </font><font size="2" color="#008000"><font size="2" color="#008000">//5.20b correct shrinking window</font></font></font><br></td></tr></table><br><br>A little off topic, but your comment tells me that you are not using version control. Suchs comments do not belong into the code.<br><br></div>]]>
   </description>
   <pubDate>Mon, 13 Sep 2010 15:17:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=60170&amp;title=cwindowrect-and-office-2007-theme#60170</guid>
  </item> 
  <item>
   <title><![CDATA[CWindowRect() and Office/2007 theme. : When my app exits, I write the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=60168&amp;title=cwindowrect-and-office-2007-theme#60168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 17240<br /><strong>Posted:</strong> 13 September 2010 at 12:43pm<br /><br />When my app exits, I write the window rect to the registry, and when it starts, I get that value in PreCreateWindow() and set the window locations, so that the app appears in the same location and size as where it was when it exited.&nbsp; The problem is when I use the Office/2007 and black theme (from Vista.cjstyles), GetWindowRect() is a couple of pixels smaller than the window, so the window shrinks a little.&nbsp; We noticed that the difference was 4 pixels, so we arbitrarily added 4 to the height, which I think is a hack.&nbsp; Is there an XTP equivalent that will do the same thing, similar to GetSystemMetrics(SM_CXFRAME) or something?<DIV>&nbsp;</DIV><DIV>Here's my code:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT face="Courier New, Courier, mono"><FONT color=#020002 size=2><FONT color=#020002 size=2>CRect</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>r</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">;</FONT></P><DIV></FONT><FONT face="Courier New, Courier, mono"><FONT color=#020002 size=2><FONT color=#020002 size=2>GetWindowRect</FONT></FONT><FONT size=2>(&amp;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>r</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">);</FONT></DIV><P></FONT><FONT face="Courier New, Courier, mono"><FONT color=#020002 size=2><FONT color=#020002 size=2>CString</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>s</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">;</FONT></P><P></FONT><FONT face="Courier New, Courier, mono"><FONT color=#020002 size=2><FONT color=#020002 size=2>s</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>Format</FONT></FONT><FONT size=2>(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"%d,%d,%d,%d"</FONT></FONT><FONT size=2>, </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>r</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>left</FONT></FONT><FONT size=2>,</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>r</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>top</FONT></FONT><FONT size=2>,</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>r</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>Width</FONT></FONT><FONT size=2>(),</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>r</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>Height</FONT></FONT><FONT size=2>()+4); </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//5.20b correct shrinking window</P></FONT></FONT></FONT><FONT size=2><P></FONT><FONT face="Courier New, Courier, mono"><FONT color=#020002 size=2><FONT color=#020002 size=2>AfxGetApp</FONT></FONT><FONT size=2>()-&gt;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>WriteProfileString</FONT></FONT><FONT size=2>(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Location"</FONT></FONT><FONT size=2>,</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Frame"</FONT></FONT><FONT size=2>, </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>s</FONT></FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">);</FONT></P><DIV></DIV><DIV></DIV>Thanks!<DIV></DIV>- David</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 13 Sep 2010 12:43:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17240&amp;PID=60168&amp;title=cwindowrect-and-office-2007-theme#60168</guid>
  </item> 
 </channel>
</rss>