<?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 : Splitters and windows switching</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Splitters and windows switching]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 19:45:50 +0000</pubDate>
  <lastBuildDate>Mon, 29 Jun 2009 00:55:31 +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=14641</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[Splitters and windows switching : BTW, I have v13 and nowhere CXTPPropertyGridWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50432&amp;title=splitters-and-windows-switching#50432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14641<br /><strong>Posted:</strong> 29 June 2009 at 12:55am<br /><br />BTW, I have v13 and nowhere CXTPPropertyGridWnd can be found. All calls to CreateStatis are made from frame windows in all samples...]]>
   </description>
   <pubDate>Mon, 29 Jun 2009 00:55:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50432&amp;title=splitters-and-windows-switching#50432</guid>
  </item> 
  <item>
   <title><![CDATA[Splitters and windows switching : Here is more or less all the code...unfortunatly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50431&amp;title=splitters-and-windows-switching#50431</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14641<br /><strong>Posted:</strong> 29 June 2009 at 12:47am<br /><br />Here is more or less all the code...unfortunatly it does not work...I traced it, and see that everything is created without errors, including the ReportControl,&nbsp;but on the right side I see just one plain view...<DIV>&nbsp;</DIV><DIV><FONT size=2><FONT size=2><P>BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/*lpcs*/</FONT></FONT><FONT size=2>, CCreateContext* pContext) </P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// split the main frame window into 2 colums:</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// left - for ShortcutBar, right for the rest</P></FONT></FONT><FONT size=2><P>m_wndSplitter.CreateStatic(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>, 1, 2);</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// create ShortcutBar in the left pane</P></FONT></FONT><FONT size=2><P>CreateShortcutBar();</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Split the right side window to contain 2 rows, the top one is for caption</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!m_wndSplitter1.CreateStatic(&amp;m_wndSplitter, </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// our parent window is the first splitter</P></FONT></FONT><FONT size=2><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>2, 1, </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// the new splitter is 2 rows, 1 column</P></FONT></FONT><FONT size=2><P>WS_CHILD | WS_VISIBLE </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/*| WS_BORDER*/</FONT></FONT><FONT size=2>, </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// style, WS_BORDER is needed</P></FONT></FONT><FONT size=2><P>m_wndSplitter.IdFromRowCol(0, 1))) </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// new splitter is in the first row, 2nd column of first splitter</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></FONT><FONT size=2><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>TRACE0(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Failed to create caption splitter\n"</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> FALSE;</P></BLOCKQUOTE><P>}</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Create the caption bar, this will be inserted</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// into row 0, col 0 of nested m_wndSplitter1.</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!InitializeCaptionBar())</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> FALSE;</P></BLOCKQUOTE><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// create a frame to hold all other windows at the right bottom part of m_wndSplitter1</P></FONT></FONT><FONT size=2><P>m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CRightFrame), CSize(0, 800), pContext);</P><P>m_pRightFrame = (CRightFrame*)(m_wndSplitter1.GetPane(1,0));</P><P>m_pRightFrame-&gt;SetDocPtr(m_gpDoc);</P></BLOCKQUOTE><P>&nbsp;</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// set the width of the shortcut bar</P></FONT></FONT><FONT size=2><P>m_wndSplitter.SetColumnInfo(0, m_cxTreePane,150); </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//250</P></FONT></FONT><FONT size=2><P>m_wndSplitter.RecalcLayout();</P><P>m_wndSplitter1.RecalcLayout();</P><P>m_wndSplitter.EnableFlatLook(TRUE);</P><P>m_wndSplitter1.EnableFlatLook(TRUE);</P><P>m_wndSplitter.SetSplitterStyle(XT_SPLIT_NOFULLDRAG);</P><P>m_wndSplitter1.SetSplitterStyle(XT_SPLIT_NOFULLDRAG | XT_SPLIT_NOSIZE | XT_SPLIT_NOBORDER);</P><P>m_wndSplitter.SetActivePane(0,0);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> TRUE;</P></BLOCKQUOTE><P>}</P><P>BOOL CRightFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) </P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>m_pReportFormView = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CReportFormView;</P><P>((CView*)m_pReportFormView)-&gt;Create(NULL, NULL, 0L, CXTPFrameWnd::rectDefault, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>, VIEW_REPORT, pContext);</P><P>m_pReportFormView-&gt;ShowWindow(SW_HIDE);</P><P>m_pReportFormView-&gt;SetDlgCtrlID(VIEW_REPORT);</P><P>m_pReportFormView-&gt;SetDocPtr(m_gpDoc);</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// this view will contain a splitter and will split to 2 rows:</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// top for holding CReportControl </P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// and bottom for holding another CReportControl </P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//</P></FONT></FONT><FONT size=2><P>m_pSplitterView = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CSplitterView;</P><P>((CView*)m_pSplitterView)-&gt;Create(NULL, NULL, 0L, CXTPFrameWnd::rectDefault, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>, VIEW_SPLIT, pContext);</P><P>m_pSplitterView-&gt;ShowWindow(SW_SHOW);</P><P>m_pSplitterView-&gt;SetDlgCtrlID(VIEW_SPLIT);</P><P>m_pSplitterView-&gt;SetDocPtr(m_gpDoc);</P><P>m_nCurrentViewID = VIEW_SPLIT;</P><P>RecalcLayout();</P></BLOCKQUOTE><P></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> TRUE;</P></BLOCKQUOTE><P>}</P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>int</FONT></FONT><FONT size=2> CRightFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) </P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (CXTPFrameWnd::OnCreate(lpCreateStruct) == -1)</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!InitCommandBars())</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P></P><P>CXTPCommandBars* pCommandBars = GetCommandBars();</P><P></P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// toolbar</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>//</P></FONT></FONT><FONT size=2><P>CXTPToolBar* pCommandBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Report Toolbar"</FONT></FONT><FONT size=2>), xtpBarTop);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!pCommandBar || !pCommandBar-&gt;LoadToolBar(IDR_REPORT_BAR))</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>TRACE0(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Failed to create Report toolbar\n"</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P>} </P><P>pCommandBar-&gt;EnableDocking(0);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (XTPImageManager()-&gt;IsAlphaIconsSupported())</P><P>{ </P><P>XTPImageManager()-&gt;SetIcons(IDR_REPORT_BAR, IDB_REPORT_BAR);</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>else</P></FONT></FONT><FONT size=2><P>{</P><P>XTPImageManager()-&gt;SetIcons(IDR_REPORT_BAR);</P><P>}</P><P>m_pReportBar = pCommandBar;</P><P>m_pReportBar-&gt;SetVisible(TRUE);</P><P>m_pCurrentBar = m_pReportBar;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 0;</P></BLOCKQUOTE><P>}</P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>int</FONT></FONT><FONT size=2> CSplitterView::OnCreate(LPCREATESTRUCT lpCreateStruct)</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (CView::OnCreate(lpCreateStruct) == -1)</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!m_wndSplitter2.CreateStatic(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>, 2, 1))</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE></BLOCKQUOTE><P></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>m_wndSplitter2.SetOwner(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>); </P><P>m_wndSplitter2.SetSplitterStyle(XT_SPLIT_NOFULLDRAG);</P><P></P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Create top frame</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CCenterRightFrame), CSize(0,0), 0))</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>TRACE(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Unable to create CCenterRightFrame\n"</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P>}</P></BLOCKQUOTE><P></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Create top frame</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CBottomRightFrame), CSize(0,0), 0))</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>TRACE(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Unable to create CBottomRightFrame\n"</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 0;</P></BLOCKQUOTE><P>}</P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>int</FONT></FONT><FONT size=2> CCenterRightFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) </P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (CXTPFrameWnd::OnCreate(lpCreateStruct) == -1)</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!InitCommandBars())</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE></BLOCKQUOTE><P></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>CXTPCommandBars* pCommandBars = GetCommandBars();</P><P>CXTPToolBar* pCommandBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Discovery ControlBar"</FONT></FONT><FONT size=2>), xtpBarTop);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (!pCommandBar || !pCommandBar-&gt;LoadToolBar(IDR_DISCOVERY_TOOLBAR))</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>TRACE0(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Failed to create Discovery toolbar\n"</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> -1;</P></BLOCKQUOTE><P>} </P><P>pCommandBar-&gt;EnableDocking(0);</P><P>CString csStr = L</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>" "</FONT></FONT><FONT size=2>;</P><P>CString csStr2;</P><P>csStr2.LoadString(IDS_CENTER_FRAME_TITLE);</P><P>csStr += csStr2;</P><P>pCommandBar-&gt;GetControls()-&gt;Add(xtpControlLabel, 0)-&gt;SetCaption(csStr);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (XTPImageManager()-&gt;IsAlphaIconsSupported())</P><P>{ </P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>XTPImageManager()-&gt;SetIcons(IDR_DISCOVERY_TOOLBAR, IDB_DISCOVERY_TOOLBAR);</P></BLOCKQUOTE><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>else</P></FONT></FONT><FONT size=2><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>XTPImageManager()-&gt;SetIcons(IDR_DISCOVERY_TOOLBAR);</P></BLOCKQUOTE><P>}</P><P>InitReportCtrl();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> 0;</P></BLOCKQUOTE><P>}</P></FONT></FONT><FONT size=2></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 29 Jun 2009 00:47:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50431&amp;title=splitters-and-windows-switching#50431</guid>
  </item> 
  <item>
   <title><![CDATA[Splitters and windows switching : I tried that before and could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50427&amp;title=splitters-and-windows-switching#50427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14641<br /><strong>Posted:</strong> 28 June 2009 at 6:30pm<br /><br />I tried that before and could not make toolbars to work - messaging was somehow broken...]]>
   </description>
   <pubDate>Sun, 28 Jun 2009 18:30:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50427&amp;title=splitters-and-windows-switching#50427</guid>
  </item> 
  <item>
   <title><![CDATA[Splitters and windows switching : Hi;Why do you think you have to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50424&amp;title=splitters-and-windows-switching#50424</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 14641<br /><strong>Posted:</strong> 28 June 2009 at 3:55pm<br /><br />Hi;<br><br>Why do you think you have to put frames into splitter 2? Just put your CView derived classes into the splitter. <br>CView objects - as every CWnd derived object - can also contain CXTPCommandBar objects (just include a CXTPCommandBar member into your CView class and initialize it), so no need for frames.<br>I think there's a sample how to put a CXTPCommandbar object into panes. Take this as a first step.<br>]]>
   </description>
   <pubDate>Sun, 28 Jun 2009 15:55:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50424&amp;title=splitters-and-windows-switching#50424</guid>
  </item> 
  <item>
   <title><![CDATA[Splitters and windows switching : That&amp;#039;s refreshing... all...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50423&amp;title=splitters-and-windows-switching#50423</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14641<br /><strong>Posted:</strong> 28 June 2009 at 3:50pm<br /><br />That's refreshing... all the post I read so far say that I cannot put splitters in the CView derived classes... I will try that. This brings another question:<DIV>When I have a splitter in a view I will have first to create frame window for each part of the splitter since I need to have a toolbar for in each splitted view. So to iterate once again I will have:</DIV><DIV>- main splitter that devides main frame to LeftFrame and RightFrame</DIV><DIV>- RightFrame pane will contain Toolbar1 with View1</DIV><DIV>- It will also have View2</DIV><DIV>- View1 and View2 will be switchable</DIV><DIV>- View2 will contain Splitter2 </DIV><DIV>- Splitter2 will split View2 to TopFrame and BottomFrame</DIV><DIV>- TopFame will contain TopToolbar and TopView</DIV><DIV>- BottomFrame will contain BottomToolbar and BottomView</DIV><DIV>&nbsp;</DIV><DIV>so do you still think it is possible?</DIV>]]>
   </description>
   <pubDate>Sun, 28 Jun 2009 15:50:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50423&amp;title=splitters-and-windows-switching#50423</guid>
  </item> 
  <item>
   <title><![CDATA[Splitters and windows switching : Hi;You can put CSplitterWnd in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50414&amp;title=splitters-and-windows-switching#50414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 14641<br /><strong>Posted:</strong> 28 June 2009 at 7:43am<br /><br />Hi;<br><br>You can put CSplitterWnd in CView derived classes also. We do this day-to-day (see code).<br><table width="99%"><tr><td><pre class="BBcode">&nbsp;&nbsp;&nbsp; // Zuerst den Splitter erzeugen<br>CMyView::OnCreate(...) {<br>&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; if (!wndSplitter_.CreateStatic(this, 2, 1))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br><br>&nbsp;&nbsp;&nbsp; wndSplitter_.SetOwner(this);<br>&nbsp;&nbsp;&nbsp; wndSplitter_.SetSplitterStyle(XT_SPLIT_NOFULLDRAG);<br><br>&nbsp;&nbsp;&nbsp; // Create any view<br>&nbsp;&nbsp;&nbsp; if (!wndSplitter_.CreateView(0, 0, RUNTIME_CLASS(CMyFirstViewView), CSize(0,0), 0))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE("Unable to create view\n");<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Create a CWnd derived object directly<br>&nbsp;&nbsp;&nbsp; if (!wndPanes_.Create(WS_VISIBLE|WS_CHILD, CRect(0,0,0,0), &amp;wndSplitter_, wndSplitter_.IdFromRowCol(1,0)))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br><br>&nbsp;&nbsp;&nbsp; wndPanes_.SetOwner(this);<br>&nbsp;&nbsp;&nbsp; ...<br>}<br><br>void CMyView::OnSize(UINT nType, int cx, int cy)<br>{<br>&nbsp;&nbsp;&nbsp; CView::OnSize(nType, cx, cy);<br>&nbsp;&nbsp;&nbsp; if (wndSplitter_.GetSafeHwnd())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wndSplitter_.MoveWindow(0,0,cx,cy);<br>&nbsp;&nbsp;&nbsp; }<br>}<br></pre></td></tr></table><br><br>But you can also write your own splitter management functions. Take a look at CXTPPropertyGridWnd. It handles the splitting by catching the appropriate messages and take any actions.<br><br>]]>
   </description>
   <pubDate>Sun, 28 Jun 2009 07:43:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50414&amp;title=splitters-and-windows-switching#50414</guid>
  </item> 
  <item>
   <title><![CDATA[Splitters and windows switching : Imagine you have Outlook-stile...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50412&amp;title=splitters-and-windows-switching#50412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 14641<br /><strong>Posted:</strong> 27 June 2009 at 11:12pm<br /><br />Imagine you have Outlook-stile UI, that is whenever you click on Calendar, Tasks, or Mail items in the left window the right view changes accordingly. So basically there is CSplitterWnd member in the CMainFrm that splits it to Right and Left, then if I create another child frame in the left window I can create several views in it and switch them according to the item clicked in the Left view. Here is the problem: what if some views that I create in Right part should have splitters too? That is if I click Mail I get a view in the Right pane that is split to email items and preview... How do I go about this? I know that I cannot put CSplitterWnd member in CView - it requires CFrameWnd or its derivative... I am attaching a schetch (Splitters.bmp) the way I'd like it to be, but know at the same time that I cannot put m_ViewSplitter in CSplitterView (derived from CView)... ]]>
   </description>
   <pubDate>Sat, 27 Jun 2009 23:12:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14641&amp;PID=50412&amp;title=splitters-and-windows-switching#50412</guid>
  </item> 
 </channel>
</rss>