<?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 : Initially hidden pane - how to initialize</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Initially hidden pane - how to initialize]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:39:03 +0000</pubDate>
  <lastBuildDate>Sun, 09 Jan 2005 06:53:02 +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=1638</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[Initially hidden pane - how to initialize : I have a question - when the docking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1638&amp;PID=4655&amp;title=initially-hidden-pane-how-to-initialize#4655</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 1638<br /><strong>Posted:</strong> 09 January 2005 at 6:53am<br /><br /><P><FONT face="Courier New, Courier, mono" size=2>I have a question - when the docking pane is initially minimized (due to its state being loaded from the registry in this way), then the following code does not work:</FONT></P><P><FONT face="Courier New, Courier, mono" size=2><table width="99%"><tr><td><pre class="BBcode"></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<BR>{<BR>&nbsp;&nbsp; if (wParam == XTP_DPN_SHOWWINDOW)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;<BR>&nbsp;&nbsp;&nbsp;&nbsp; if (!pPane-&gt;IsValid())<BR>&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp; if (!m_wndPane.m_hWnd)<BR>&nbsp; {<BR>&nbsp;&nbsp; m_wndPane.CreateEx(WS_EX_STATICEDGE, _T("EDIT"), _T(""), WS_CHILD|ES_AUTOVSCROLL|ES_MULTILINE, CRect(0, 0,200, 120), this, 0);<BR>&nbsp; }<BR>&nbsp; pPane-&gt;Attach(&amp;m_wndPane);<BR>&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;<BR>&nbsp;&nbsp; }<BR>&nbsp;return FALSE; <BR>}</FONT></P><P><FONT face="Courier New, Courier, mono" size=2></pre></td></tr></table></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>So, in that case I've added some code before that and it became something like:</FONT></P><P><FONT face="Courier New, Courier, mono" size=2><table width="99%"><tr><td><pre class="BBcode"></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>if(XTP_DPN_SHOWWINDOW==wParam)<BR>{<BR>&nbsp; CXTPDockingPane *pPane=(CXTPDockingPane*)lParam;<BR>&nbsp; if(!pPane-&gt;IsValid())<BR>&nbsp; {<BR>&nbsp; switch(pPane-&gt;GetID())<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; case IDR_PANE:<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!pMyPane)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  pMyPane=static_cast&lt;CDockPaneWnd&lt;CMyPane&gt;*&gt;(pPan e-&gt;AttachView(this,RUNTIME_CLASS(CMyPane))); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPane-&gt;SetOptions(xtpPaneNoCloseable);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; break;<BR>&nbsp; }<BR>}</FONT></P><P><FONT face="Courier New, Courier, mono" size=2></pre></td></tr></table></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>This seems to work (so, both cases are covered), but first of all it seems a lot of unnecessary code, and secondly the WM_INITIALUPDATE message doesn't go through sometimes for some reason...</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>Is there a better way to accomplish the creation of views inside docking panes that might not be initially visible?</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>Thank you.</FONT></P>]]>
   </description>
   <pubDate>Sun, 09 Jan 2005 06:53:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1638&amp;PID=4655&amp;title=initially-hidden-pane-how-to-initialize#4655</guid>
  </item> 
 </channel>
</rss>