<?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 : XTPWM_DOCKINGPANE_NOTIFY message never comes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : XTPWM_DOCKINGPANE_NOTIFY message never comes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 06 Jun 2026 13:20:10 +0000</pubDate>
  <lastBuildDate>Wed, 10 Oct 2007 04:48:30 +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=8375</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[XTPWM_DOCKINGPANE_NOTIFY message never comes : Hi,  I have followed the example...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8375&amp;PID=27156&amp;title=xtpwm-dockingpane-notify-message-never-comes#27156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3374">jingstromer</a><br /><strong>Subject:</strong> 8375<br /><strong>Posted:</strong> 10 October 2007 at 4:48am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I have followed the example to add a docking pane to my application, this used to work with version 8.6, but now with the 11.2 trial version I don't receive the&nbsp;&nbsp;<FONT size=2>XTPWM_DOCKINGPANE_NOTIFY message, so the pane is not created.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>When is the message not sent?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Here is my code in MainFrame.cpp:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><FONT size=2><P>BEGIN_MESSAGE_MAP(CMainFrame, CXTPMDIFrameWnd)</P><P></FONT><FONT color=#008000 size=2>...</P></FONT><FONT size=2><P>ON_MESSAGE(XTPWM_DOCKINGPANE_NOTIFY, OnDockingPaneNotify)</P><P>...</P><P>END_MESSAGE_MAP()</P><DIV></DIV><P>&nbsp;</P><DIV></DIV><FONT color=#0000ff size=2><P>int</FONT><FONT size=2> CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (CXTPMDIFrameWnd::OnCreate(lpCreateStruct) == -1)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> -1;</P><P></P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!m_wndToolBar.CreateEx(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP</P><P>| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||</P><P>!m_wndToolBar.LoadToolBar(IDR_TOOLBAR1))</P><P>{</P><P>TRACE0(</FONT><FONT color=#a31515 size=2>"Failed to create toolbar\n"</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> -1; </FONT><FONT color=#008000 size=2>// fail to create</P></FONT><FONT size=2><P>}</P><P>&nbsp;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!m_wndStatusBar.Create(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>) ||</P><P>!m_wndStatusBar.SetIndicators(indicators,</P><P></FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(indicators)/</FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(UINT)))</P><P>{</P><P>TRACE0(</FONT><FONT color=#a31515 size=2>"Failed to create status bar\n"</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> -1; </FONT><FONT color=#008000 size=2>// fail to create</P></FONT><FONT size=2><P>}</P><P></FONT><FONT color=#008000 size=2>// TODO: Delete these three lines if you don't want the toolbar to</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>// be dockable</P></FONT><FONT size=2><P>m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);</P><P>EnableDocking(CBRS_ALIGN_ANY);</P><P>DockControlBar(&amp;m_wndToolBar);</P><P>m_paneManager.InstallDockingPanes(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>);</P><P>m_paneManager.SetTheme(xtpPaneThemeOffice);</P><P></FONT><FONT color=#008000 size=2>//Create docking panes.</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//JITEST</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//CXTPDockingPane* pwdPane1 = m_paneManager.CreatePane(IDR_OPTIONS, CRect(0, 0, 200, 120), dockLeftOf);</P></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2>//CXTPDockingPane* pwdPane2 = m_paneManager.CreatePane(IDR_OUTPUT, CRect(0, 0, 200, 120), dockLeftOf, pwdPane1);</P></FONT><FONT size=2><P>CXTPDockingPane* pwdPane1 = m_paneManager.CreatePane(IDR_OPTIONS, CRect(0, 0, 200, 120), xtpPaneDockLeft);</P></FONT><FONT size=2><P>CXTPDockingPane* pwdPane2 = m_paneManager.CreatePane(IDR_OUTPUT, CRect(0, 0, 200, 120), xtpPaneDockLeft, pwdPane1);</P><P></P><P></FONT><FONT color=#008000 size=2>//Load layout</P></FONT><FONT size=2><P>CXTPDockingPaneLayout layoutNormal(&amp;m_paneManager);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (layoutNormal.Load(_T(</FONT><FONT color=#a31515 size=2>"NormalLayout"</FONT><FONT size=2>)))</P><P>{</P><P>m_paneManager.SetLayout(&amp;layoutNormal);</P><P>}</P><P></P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> 0;</P><P>}</P><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV><FONT size=2>LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)</DIV><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (wParam == XTP_DPN_SHOWWINDOW) </P><P>{</P><P>CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;</P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!pPane-&gt;IsValid())</P><P>{</P><P></FONT><FONT color=#0000ff size=2>switch</FONT><FONT size=2> (pPane-&gt;GetID())</P><P>{</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> IDR_OPTIONS:</P><P>{ </P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_paneToolbars.GetSafeHwnd() == 0)</P><P>{</P><P>m_paneToolbars.Create(_T(</FONT><FONT color=#a31515 size=2>"STATIC"</FONT><FONT size=2>), NULL, WS_CHILD, CRect(0, 0, 0, 0), </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, 0);</P><P>}</P><P>pPane-&gt;Attach(m_paneToolbars.CreateTreeView()); </P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P>}</P><P></FONT><FONT color=#0000ff size=2>case</FONT><FONT size=2> IDR_OUTPUT:</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (m_paneOutput.GetSafeHwnd() == 0)</P><P>{</P><P>m_paneOutput.Create(_T(</FONT><FONT color=#a31515 size=2>"STATIC"</FONT><FONT size=2>), NULL, WS_CHILD, CRect(0, 0, 0, 0), </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, 0);</P><P>} </P><P>pPane-&gt;Attach(m_paneOutput.CreateOutputView()); </P><P></FONT><FONT color=#0000ff size=2>break</FONT><FONT size=2>;</P><P>}</P><P>}</P><P>}</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> TRUE;</P><P>}</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> FALSE;</P><P>}</P></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 10 Oct 2007 04:48:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8375&amp;PID=27156&amp;title=xtpwm-dockingpane-notify-message-never-comes#27156</guid>
  </item> 
 </channel>
</rss>