<?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 : Restoring Frame Window placement</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Restoring Frame Window placement]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 00:45:21 +0000</pubDate>
  <lastBuildDate>Wed, 03 Sep 2008 15:06:22 +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=12063</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[Restoring Frame Window placement : I have some code to restore my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12063&amp;PID=40687&amp;title=restoring-frame-window-placement#40687</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 12063<br /><strong>Posted:</strong> 03 September 2008 at 3:06pm<br /><br />I have some code to restore my frame's window placement using GetWindowPlacement, but it doesn't work with the Vista skin - the window shrinks a pixel or two everytime I open it.&nbsp; I probably need to add the size of the Vista status bar or something; I'm just not sure how.&nbsp; Does XTP have this built-in?&nbsp; I call it in PreCreateWindow(), and I call this in the frame's OnDestroy(): <DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV><FONT size=2><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>WINDOWPLACEMENT</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>;</P><P></P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>BOOL</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>b</FONT></FONT><FONT size=2> = </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>GetWindowPlacement</FONT></FONT><FONT size=2>(&amp;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>);</FONT></P><P><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>height</FONT></FONT><FONT size=2> = </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rcNormalPosition</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>bottom</FONT></FONT><FONT size=2> - </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rcNormalPosition</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>top</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</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>wp</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rcNormalPosition</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>right</FONT></FONT><FONT size=2> - </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rcNormalPosition</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>left</FONT></FONT><FONT size=2>;</P><P></FONT><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,%d"</FONT></FONT><FONT size=2>,</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>height</FONT></FONT><FONT size=2>,</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>width</FONT></FONT><FONT size=2>,</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rcNormalPosition</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>top</FONT></FONT><FONT size=2>,</P><DIV></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rcNormalPosition</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>left</FONT></FONT><FONT size=2>,</DIV><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wp</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>showCmd</FONT></FONT><FONT size=2>);</P></FONT></DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Any ideas?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Wed, 03 Sep 2008 15:06:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12063&amp;PID=40687&amp;title=restoring-frame-window-placement#40687</guid>
  </item> 
 </channel>
</rss>