<?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 : A problem : Adding CSplitterWnd to CView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : A problem : Adding CSplitterWnd to CView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 06:45:19 +0000</pubDate>
  <lastBuildDate>Mon, 28 Nov 2005 13:42:07 +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=3293</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[A problem : Adding CSplitterWnd to CView : CSplitterWnd can be child of CFrameWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3293&amp;PID=9861&amp;title=a-problem-adding-csplitterwnd-to-cview#9861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3293<br /><strong>Posted:</strong> 28 November 2005 at 1:42pm<br /><br /><P><FONT color=#0000cc><FONT color=#000000>CSplitterWnd can be child of CFrameWnd classes only. </FONT></FONT></P>]]>
   </description>
   <pubDate>Mon, 28 Nov 2005 13:42:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3293&amp;PID=9861&amp;title=a-problem-adding-csplitterwnd-to-cview#9861</guid>
  </item> 
  <item>
   <title><![CDATA[A problem : Adding CSplitterWnd to CView : I have defined a class based on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3293&amp;PID=9851&amp;title=a-problem-adding-csplitterwnd-to-cview#9851</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1633">qinzhw</a><br /><strong>Subject:</strong> 3293<br /><strong>Posted:</strong> 28 November 2005 at 7:05am<br /><br /><P>I have defined a class based on&nbsp; CView like this :</P><P><EM><FONT color=#0000cc>class CSMSView : public CStaticFrameWnd&lt;CView&gt;<BR>{<BR>&nbsp;&nbsp; ...<BR>&nbsp;&nbsp;<strong> protected:<BR></strong>&nbsp;&nbsp;&nbsp;&nbsp; BOOL m_bInited ;<BR>&nbsp;&nbsp;&nbsp; CSplitterWndEx m_wndSplitter;<BR>&nbsp;&nbsp;&nbsp; CCreateContext* m_pCreateContext ;<BR>&nbsp;&nbsp; ....<BR>&nbsp;<BR>&nbsp;virtual void OnInitialUpdate();<BR>}</FONT></EM></P><P>and for some reason , I want to split it into 2 part&nbsp;with :</P><P>int CSMSView::OnCreate(LPCREATESTRUCT lpcs)<BR>{</P><P>&nbsp;if (CView::OnCreate(lpcs) == -1)<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;<BR>&nbsp;<EM><FONT color=#0000cc>m_bInited = FALSE ;<BR>&nbsp;if(lpcs)&nbsp; <BR>&nbsp;&nbsp;m_pCreateContext = (CCreateContext*)lpcs-&gt;lpCreateParams ;<BR>&nbsp;else<BR>&nbsp;&nbsp;m_pCreateContext = NULL ;</FONT></EM></P><P>&nbsp;//*/<BR>&nbsp;return 0;<BR>}</P><P>CSMSView::OnInitialUpdate(){</P><P><EM><FONT color=#000099>if(m_bInited) return ;<BR>&nbsp;m_bInited = TRUE ;</FONT></EM></P><P><EM><FONT color=#000099>if (!m_wndSplitter.CreateStatic(this,&nbsp;1, 2,&nbsp;&nbsp;WS_CHILD | WS_VISIBLE ,&nbsp;&nbsp;&nbsp;AFX_IDW_PANE_FIRST + 10))</FONT></EM></P><P><EM><FONT color=#000099>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create nested splitter\n");<BR>&nbsp;&nbsp;return ;<BR>&nbsp;}</FONT></EM></P><P><BR><EM><FONT color=#000099>&nbsp;if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CWnd),<BR>&nbsp;&nbsp;CSize(175,100), m_pCreateContext))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create CContainerView\n");<BR>&nbsp;&nbsp;return ;<BR>&nbsp;} <BR>&nbsp;if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CWnd),<BR>&nbsp;&nbsp;CSize(175, 100), m_pCreateContext))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create CContainerView\n");<BR>&nbsp;&nbsp;return ;<BR>&nbsp;}</FONT></EM></P><P>}</P><P>Definitions of <FONT color=#0000cc><EM>CStaticFrameWnd </EM><FONT color=#000000>and </FONT><EM>CSplitterWndEx</EM> </FONT><FONT color=#000000>are found in the GUI_Outlook sample .<BR><BR>&nbsp;<FONT color=#000099><EM>m_wndSplitter.CreateView </EM><FONT color=#000000>and </FONT><EM>m_wndSplitter.CreateStatic </EM></FONT>return TRUE, but Windows in Splitter are absent, why???<IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></FONT></P>]]>
   </description>
   <pubDate>Mon, 28 Nov 2005 07:05:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3293&amp;PID=9851&amp;title=a-problem-adding-csplitterwnd-to-cview#9851</guid>
  </item> 
 </channel>
</rss>