<?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 : Troubles while restoring splitter panes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Troubles while restoring splitter panes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 22:46:02 +0000</pubDate>
  <lastBuildDate>Sun, 27 Jan 2008 17:23:41 +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=9420</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[Troubles while restoring splitter panes : Hi; I&amp;#039;m using CXTPSplitterWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9420&amp;PID=30528&amp;title=troubles-while-restoring-splitter-panes#30528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9420<br /><strong>Posted:</strong> 27 January 2008 at 5:23pm<br /><br />Hi;<DIV>I'm using CXTPSplitterWnd to show&nbsp;panes in two columns. The user is able to show/hide the second column. To this point everything works fine!</DIV><DIV>Now I want to permanently store the current state of the splitter panes to disk. And after opening the same frame restore the state. This also works almost well. </DIV><DIV>The only problem I got is, when the second pane was hidden while closing the frame and after showing the frame again and switching the visibility of the second column, the pane always comes up with a x-size of 0. The first pane column is extended to the max client size.</DIV><DIV>&nbsp;</DIV><DIV>I tried different approaches, but with no success. Currently my code for showing/hiding the second pane looks like this:</DIV><DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>void</FONT><FONT size=2> CBIFrameWnd::OnToggleBatchDetails() {</DIV><DIV><DIV></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp; if</FONT><FONT size=2> (_splitterV2.GetHiddenColIndex()==1) {</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; _splitterV2.ShowColumn();</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>int</FONT> cxCur, cxMin;</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; _splitterV2.GetColumnInfo(1, cxCur, cxMin);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>if</FONT> (cxCur==0) {</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RestoreBatchDetailPane();</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; }</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; <FONT color=#0000ff>else</FONT> </FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; _splitterV2.HideColumn(1);</FONT></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT color=#0000ff><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff><FONT size=2>void</FONT></FONT><FONT size=2> CBIFrameWnd::RestoreBatchDetailPane() {</FONT></DIV><DIV><FONT size=2><FONT color=#0000ff>int</FONT> cx1, cx2, cxMin1, cxMin2, iHidden;</FONT></DIV><DIV><FONT size=2>CXTRegistryManager rm;</FONT></DIV><DIV><FONT size=2>CString strRegValue;</FONT></DIV><DIV><FONT size=2>CString strItem;</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>&nbsp;&nbsp; strRegValue=rm.GetProfileString(REG_BI_SECTION, REG_BI_SPLITTERV2, _T("600,0,100,0,-1"));</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;<FONT color=#0000ff>if</FONT> (_stscanf(strRegValue, _T("%d,%d,%d,%d,%d"), &amp;cx1, &amp;cxMin1, &amp;cx2, &amp;cxMin2,&amp;iHidden)==5) {</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; _splitterV2.SetColumnInfo(0, cx1, cxMin1);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; _splitterV2.SetColumnInfo(1, cx2, cxMin2);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; _splitterV2.RecalcLayout();</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; }</FONT></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Any ideas whats wrong?</FONT></DIV></DIV>]]>
   </description>
   <pubDate>Sun, 27 Jan 2008 17:23:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9420&amp;PID=30528&amp;title=troubles-while-restoring-splitter-panes#30528</guid>
  </item> 
 </channel>
</rss>