<?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 : Context Help with Docking Pane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Context Help with Docking Pane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 04:18:57 +0000</pubDate>
  <lastBuildDate>Tue, 10 Aug 2010 23:52:14 +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=17098</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[Context Help with Docking Pane : Product: CodeJock Xtreme Toolkit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17098&amp;PID=59727&amp;title=context-help-with-docking-pane#59727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6300">kublikhan</a><br /><strong>Subject:</strong> 17098<br /><strong>Posted:</strong> 10 August 2010 at 11:52pm<br /><br /><P>Product: CodeJock Xtreme Toolkit Pro 2008 Vol 2(12.1.1)<BR>Platform: Windows 7<BR>Language Visual C++ 6</P><P>Hi, I am new to codejock. I am adding Docking Panes to my project. Everything is working fine except for 1 problem. Context help(f1) does not get displayed if I use pPane-&gt;AttachView(). Context help works just fine if I use pPane-&gt;Attach(). Likewise, Context help does not work if I pPane-&gt;Attach() a CFrameWnd, but works just fine if I use a CWnd. Example:</P><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<BR>{<BR>CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;<BR>...</DIV><P>//Context help works:<BR>CWnd* pWnd = new CWnd;<BR>pWnd-&gt;Create(NULL, NULL, WS_CHILD | WS_VISIBLE, CRect(0,0,0,0), pPane-&gt;GetParentFrame(), pPane-&gt;GetID());<BR>pPane-&gt;Attach(pWnd);</P><P>//Context help does not work:<BR>CFrameWnd* pWnd = new CFrameWnd;<BR>pWnd-&gt;Create(NULL, NULL, WS_CHILD | WS_VISIBLE, CRect(0,0,0,0), pPane-&gt;GetParentFrame(), 0, 0);<BR>pPane-&gt;Attach(pWnd);</P><P>//Context help works:<BR>CWnd* pWnd = (CWnd*)pViewClass-&gt;CreateObject();<BR>pWnd-&gt;Create(NULL, NULL, WS_CHILD | WS_VISIBLE, CRect(0,0,0,0), pPane-&gt;GetParentFrame(), pPane-&gt;GetID());<BR>pPane-&gt;Attach(pWnd);</P><P>//Context help does not work:<BR>CWnd* pWnd = pPane-&gt;AttachView(pPane-&gt;GetParentFrame(), pViewClass);</pre></td></tr></table></P><DIV>&nbsp;</DIV><DIV>I found a workaround in that if I override OnHelp() to hide my main window and then show it, the context help will be displayed. But this is kind of a sucky workaround. I was hoping someone might have a better idea of what my problem is here.</DIV><DIV>Workaround:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">void CMainFrame::OnHelp()<BR>{<BR>&nbsp;UINT iActivePane = -1;<BR>&nbsp;CXTPDockingPane* pPane = m_paneManager.GetActivePane();<BR>&nbsp;if(pPane)<BR>&nbsp;&nbsp;iActivePane = pPane-&gt;GetID();<BR>&nbsp;CWnd* pWnd = this-&gt;GetParentOwner();</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;if(IDS_PROBLEM_PAIN == iActivePane)<BR>&nbsp;{<BR>&nbsp;&nbsp;pWnd-&gt;ShowWindow(SW_HIDE);<BR>&nbsp;&nbsp;pWnd-&gt;ShowWindow(SW_SHOW);<BR>&nbsp;}</DIV><P>&nbsp;CXTPFrameWnd::OnHelp();<BR>}</pre></td></tr></table></P>]]>
   </description>
   <pubDate>Tue, 10 Aug 2010 23:52:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17098&amp;PID=59727&amp;title=context-help-with-docking-pane#59727</guid>
  </item> 
 </channel>
</rss>