<?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 : what&#039;s wrong with CXTSplitterWnd ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : what&#039;s wrong with CXTSplitterWnd ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 05:59:01 +0000</pubDate>
  <lastBuildDate>Fri, 07 Dec 2007 19:30:44 +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=9042</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[what&#039;s wrong with CXTSplitterWnd ? : I have the following code that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9042&amp;PID=29251&amp;title=whats-wrong-with-cxtsplitterwnd#29251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 9042<br /><strong>Posted:</strong> 07 December 2007 at 7:30pm<br /><br />I have the following code that creates splitter windows:<DIV>&nbsp;</DIV><DIV>BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext) <BR>{</DIV><DIV>&nbsp;m_wndSplitter.CreateStatic(this, 1, 2);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CreateShortcutBar();</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;m_wndSplitter.SetColumnInfo(0, 250,150);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; m_wndSplitter2.CreateStatic(&amp;m_wndSplitter, 3, 1,&nbsp;&nbsp; WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 1));<BR>&nbsp;&nbsp;&nbsp; m_wndSplitter2.SetRowInfo(0,220, 200);<BR>&nbsp;&nbsp;&nbsp; m_wndSplitter2.SetRowInfo(1,300, 200);<BR>&nbsp;&nbsp;&nbsp; m_wndSplitter2.SetRowInfo(2,150, 100);</DIV><DIV>&nbsp;</DIV><DIV>// splitting trace window into 2 columns<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; m_wndSplitter3.CreateStatic(&amp;m_wndSplitter2, 1, 2, WS_CHILD|WS_VISIBLE, m_wndSplitter2.IdFromRowCol(1, 0));<BR>&nbsp;m_wndSplitter3.SetColumnInfo(0, 300, 200);<BR>&nbsp;m_wndSplitter3.SetColumnInfo(1, 300, 200);<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CTopRightFrame), CSize(0, 220), pContext);<BR>&nbsp;&nbsp;&nbsp; m_wndSplitter2.CreateView(2, 0, RUNTIME_CLASS(CStatusLoggingFrame), CSize(0, 200), pContext);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;m_wndSplitter3.CreateView(0, 0, RUNTIME_CLASS(CTraceFrame), CSize(100, 200), pContext);<BR>&nbsp;m_wndSplitter3.CreateView(0, 1, RUNTIME_CLASS(CTraceFrame), CSize(100, 200), pContext);</DIV><DIV>&nbsp;&nbsp;&nbsp; m_pTopRightFrame = (CTopRightFrame*)(m_wndSplitter2.GetPane(0,0));<BR>&nbsp;&nbsp;&nbsp; m_pTopRightFrame-&gt;SetDocPtr(m_gpDoc);<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; m_pStatusLoggingFrame = (CStatusLoggingFrame*)(m_wndSplitter2.GetPane(2,0));<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; m_pTraceFrame1 = (CTraceFrame*)(m_wndSplitter3.GetPane(0,0));<BR>&nbsp;&nbsp;&nbsp; m_pTraceFrame2 = (CTraceFrame*)(m_wndSplitter3.GetPane(0,1));<BR>&nbsp;&nbsp;&nbsp; m_pTraceFrame1-&gt;SetDocPtr(m_gpDoc);<BR>&nbsp;&nbsp;&nbsp; m_pTraceFrame2-&gt;SetDocPtr(m_gpDoc);</DIV><DIV>&nbsp;&nbsp;&nbsp; m_wndSplitter.SetActivePane(0,0);</DIV><DIV>&nbsp;&nbsp;&nbsp; return TRUE;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>However, the piece "splitting trace window into 2 columns" does not work for some reason... this is a splitter window within splitter window. When I do not use CSplitterWndEx which is derived from CXTSplitterWnd, then everything works as it should, but I partially lose the style/theme that is provided by CXTSplitterWnd...</DIV><DIV>&nbsp;</DIV><DIV>Anybody knows what's wrong with CXTSplitterWnd ?</DIV><DIV>&nbsp;</DIV><DIV>The layout created by this code is:</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20071207_192907_splitter.JPG" border="0"></DIV><DIV>&nbsp;</DIV><DIV>the red split is where the problem occurs - it shows just one pane instead of 2.</DIV><DIV><?:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:rect id=_x0000_s1028 style="MARGIN-TOP: 61.5pt; : 1; MARGIN-LEFT: 100.5pt; WIDTH: 270pt; : ; HEIGHT: 180pt; mso-wrap-style: square; mso-wrap-distance-left: 9pt; mso-wrap-distance-top: 0; mso-wrap-distance-right: 9pt; mso-wrap-distance-bottom: 0; mso--horiz&#111;ntal: ; mso--horiz&#111;ntal-relative: text; mso--vertical: ; mso--vertical-relative: text; v-text-anchor: top"></v:rect></DIV>]]>
   </description>
   <pubDate>Fri, 07 Dec 2007 19:30:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9042&amp;PID=29251&amp;title=whats-wrong-with-cxtsplitterwnd#29251</guid>
  </item> 
 </channel>
</rss>