<?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 : Weird docking pane creation problem?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Weird docking pane creation problem?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 04:19:03 +0000</pubDate>
  <lastBuildDate>Wed, 24 Feb 2010 01:48:37 +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=16260</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[Weird docking pane creation problem? : I have a following object &amp;#034;construct&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16260&amp;PID=57034&amp;title=weird-docking-pane-creation-problem#57034</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4405">hakoar</a><br /><strong>Subject:</strong> 16260<br /><strong>Posted:</strong> 24 February 2010 at 1:48am<br /><br />I have a following object "construct" tree in my app:<br><br>CMainframe<br>&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp; -&gt;CView<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt;CXTPTabControl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt;CXTResizeFormView (several, each one in it's own tab)<br><br>I try to create panes inside the CXTResizeFormView objects but so far no luck?<br>How should I do this to make it work? I'm a newbie with panes and basically what I have tried is copied from one sample.<br><br>Here's what I have added to the class header:<br>---<br>class CServersView : public CXTResizeFormView<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; CXTPDockingPaneManager m_paneManager;<br>&nbsp;&nbsp;&nbsp; dlgAddServer paneFilterServer;<br>&nbsp;&nbsp; afx_msg LRESULT OnDockingPaneNotify(WPARAM wParam, LPARAM lParam);<br>protected:<br>&nbsp;&nbsp;&nbsp; virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);<br>---<br><br>And in the class source I have following trying to create a "dialog" inside the pane:<br>---<br>void CServersView::OnInitialUpdate()<br>{<br>&nbsp;&nbsp;&nbsp; CXTResizeFormView::OnInitialUpdate();<br><br>&nbsp;&nbsp;&nbsp; VERIFY(m_paneManager.InstallDockingPanes(this));<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetTheme(xtpPaneThemeVisualStudio2010);<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetShowContentsWhileDragging(TRUE);<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetAlphaDockingContext(TRUE);<br><br>&nbsp;&nbsp;&nbsp; CXTPDockingPane* pwndPaneFilter = m_paneManager.CreatePane(IDR_PANE_SERVER_FILTER, CRect(0, 0, 200, 120), xtpPaneDockLeft);<br>&nbsp;&nbsp;&nbsp; pwndPaneFilter-&gt;SetTitle(_T("Empty Pane"));<br>}<br><br>LRESULT CServersView::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; if(wParam == XTP_DPN_SHOWWINDOW)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!pPane-&gt;IsValid())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch(pPane-&gt;GetID())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case IDR_PANE_SERVER_FILTER:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!::IsWindow(paneFilterServer.m_hWnd))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; paneFilterServer.Create(IDD_DIALOG_ADD_SERVER, this);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPane-&gt;Attach(&amp;paneFilterServer);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return FALSE;<br>}<br>---<br><br>What I have missed here?<br><br>]]>
   </description>
   <pubDate>Wed, 24 Feb 2010 01:48:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16260&amp;PID=57034&amp;title=weird-docking-pane-creation-problem#57034</guid>
  </item> 
 </channel>
</rss>