<?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 : Hide and Select Pane Crashes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Hide and Select Pane Crashes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:34:07 +0000</pubDate>
  <lastBuildDate>Sat, 04 Aug 2007 02:16:10 +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=1346</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[Hide and Select Pane Crashes : Hello, I need some sample to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24868&amp;title=hide-and-select-pane-crashes#24868</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 04 August 2007 at 2:16am<br /><br /><DIV>Hello,</DIV><DIV>I need some sample to trace in my side. Maybe you can try modify our samples with your code ?</DIV>]]>
   </description>
   <pubDate>Sat, 04 Aug 2007 02:16:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24868&amp;title=hide-and-select-pane-crashes#24868</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : I tried CFrameWnd::RecalcLayout,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24861&amp;title=hide-and-select-pane-crashes#24861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3190">viktor</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 03 August 2007 at 1:00pm<br /><br />I tried CFrameWnd::RecalcLayout, however does not help.<DIV>Still crashes.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 03 Aug 2007 13:00:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24861&amp;title=hide-and-select-pane-crashes#24861</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : Hello, try to call RecalcLayout();...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24844&amp;title=hide-and-select-pane-crashes#24844</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 03 August 2007 at 8:27am<br /><br />Hello,<DIV>try to call <EM>RecalcLayout(); before this cycle.</EM></DIV>]]>
   </description>
   <pubDate>Fri, 03 Aug 2007 08:27:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24844&amp;title=hide-and-select-pane-crashes#24844</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : I have encountered similar problem,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24842&amp;title=hide-and-select-pane-crashes#24842</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3190">viktor</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 03 August 2007 at 6:15am<br /><br />I have encountered similar problem, however with different conditions.<DIV><FONT color=#008000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#008000 size=2>// Select panes</FONT></DIV><DIV><FONT color=#0000ff size=2>for</FONT><FONT size=2>( </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = nPaneCount - 1; i &gt;= 0; i-- )</FONT></DIV><DIV><FONT size=2>{</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = pDockManager-&gt;FindPane( sPane<em>.nID );</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; BOOL bShowRight = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>-&gt;CheckShowPaneRight( sPanes<em>.nID );</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; <FONT color=#0000ff>if</FONT>( sPanes<em>.bShowPane &amp;&amp; bShowRight )</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; {</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>if</FONT>( pPane )</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDockManager-&gt;ShowPane( pPane );</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;}</FONT></DIV><DIV><FONT color=#0000ff><FONT size=2>&nbsp; else</FONT></FONT></DIV><DIV><FONT size=2>&nbsp; {</FONT></DIV><DIV><FONT size=2>&nbsp; &nbsp;&nbsp; <FONT color=#0000ff>if</FONT>( bShowRight )</FONT></DIV><DIV><FONT size=2>&nbsp; &nbsp;&nbsp; {</FONT></DIV><DIV><FONT size=2>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>if</FONT>( pPane )</FONT></DIV><DIV><FONT size=2>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDockManager-&gt;HidePane( pPane );</FONT></DIV><DIV><FONT size=2>&nbsp; &nbsp;&nbsp;&nbsp;}</FONT></DIV><DIV><FONT color=#0000ff><FONT size=2>&nbsp;&nbsp;&nbsp; else</FONT></FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; {</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <FONT color=#0000ff>if</FONT>( pPane )</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDockManager-&gt;ClosePane( pPane );</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; } <FONT color=#008000>// else </FONT></FONT></DIV><DIV><FONT size=2>&nbsp; } <FONT color=#008000>// else</FONT></FONT></DIV><DIV><FONT size=2>&nbsp; pDockManager-&gt;RecalcFramesLayout();</FONT></DIV><DIV><FONT size=2>} </FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I need to call RecalcFramesLayout inside the cycle, put it ahead of it does not help.</FONT></DIV><DIV><FONT size=2>If I dont recalculate frames, Invalidate method in AutoHidePanel also fails, however hWnd of AutoHidePanel is not NULL, it's got a value, however ASSERT( ::IsWindow( hWnd ) ) in CWnd::Invalidate fails.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>If all panes are set to ShowPane, this does not happen.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>InstallDockingPanes is certainly called and the code above is called after OnCreate</FONT></DIV><DIV><FONT size=2>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 03 Aug 2007 06:15:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=24842&amp;title=hide-and-select-pane-crashes#24842</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : my suggestion is to move RecalcLayout...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3818&amp;title=hide-and-select-pane-crashes#3818</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 03 November 2004 at 3:54am<br /><br /><P>my suggestion is to move RecalcLayout before first call of OnToogleCustomJobItem of OnCreate method</P><P>and call m_paneManager.SyncPanesState() after RecalcLayout.</P>]]>
   </description>
   <pubDate>Wed, 03 Nov 2004 03:54:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3818&amp;title=hide-and-select-pane-crashes#3818</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : This was our work-around for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3804&amp;title=hide-and-select-pane-crashes#3804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=804">Sorcerysoft</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 02 November 2004 at 12:35pm<br /><br /><P>This was our work-around for the GetPaneDirection() problem:</P><P><EM>LRESULT CCustomJobFrame::OnToggleViewCustomJobItems( WPARAM wParam, LPARAM lParam )<BR>{<BR>&nbsp;RecalcLayout();<BR>&nbsp; ...<BR>&nbsp;CXTPDockingPane&nbsp;*pDockingPane = m_paneManager.FindPane( IDR_JOBITEM );<BR>&nbsp;if( pDockingPane != NULL )<BR>&nbsp;{<BR>&nbsp;&nbsp;</EM><EM><strong>if( pDockingPane-&gt;IsHidden() || bForceShow == TRUE )<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CRect rc(-100, -100, -150, -150 );<BR>&nbsp;&nbsp;&nbsp;m_paneManager.FloatPane( pDockingPane, rc );<BR>&nbsp;&nbsp;&nbsp;m_paneManager.ToggleDocking( pDockingPane );<BR>&nbsp;&nbsp;}<BR></strong>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;pDockingPane-&gt;Hide();<BR>&nbsp;&nbsp; ...<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;return 0;<BR>}</EM></P><P><EM><BR></EM>Thanks!</P><span style="font-size:10px"><br /><br />Edited by Sorcerysoft</span>]]>
   </description>
   <pubDate>Tue, 02 Nov 2004 12:35:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3804&amp;title=hide-and-select-pane-crashes#3804</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : Oleg, FYI, There is a bug in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3790&amp;title=hide-and-select-pane-crashes#3790</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=15">spike</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 01 November 2004 at 7:04pm<br /><br /><P>Oleg,</P><P>FYI, There is a bug in DockPane() internally it calls GetPaneDirection which always returns DockLeftOf. The only way we found to restore a panes "dock position" was to call ShowPane then DockPane (which flickers the pane in the rect you specify before docking it in its previous state).</P>]]>
   </description>
   <pubDate>Mon, 01 Nov 2004 19:04:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3790&amp;title=hide-and-select-pane-crashes#3790</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : Thought 1isnt possible becausethe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3783&amp;title=hide-and-select-pane-crashes#3783</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=804">Sorcerysoft</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 01 November 2004 at 12:06pm<br /><br /><P>Thought 1&nbsp;isnt possible because&nbsp;the panes&nbsp;are created and visible.</P><P>Thought 2 worked. </P><P>Thanks.</P><P><EM>LRESULT CCustomJobFrame::OnToggleViewCustomJobItems( WPARAM wParam, LPARAM lParam )<BR>{<BR><strong>&nbsp;RecalcLayout();</strong></EM></P><P><EM>&nbsp;CXTPDockingPane&nbsp;*pDockingPane = m_paneManager.FindPane( IDR_JOBITEM );</EM></P><P><EM>&nbsp;if( pDockingPane != NULL )<BR>&nbsp;{<BR>&nbsp;&nbsp;if( !pDockingPane-&gt;IsFloating() )<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if( pDockingPane-&gt;IsHidden() )<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;pDockingPane-&gt;Select();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;pDockingPane-&gt;Hide();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;return 0;<BR>}</EM></P><span style="font-size:10px"><br /><br />Edited by Sorcerysoft</span>]]>
   </description>
   <pubDate>Mon, 01 Nov 2004 12:06:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3783&amp;title=hide-and-select-pane-crashes#3783</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : Thought 1. may be you forget...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3773&amp;title=hide-and-select-pane-crashes#3773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 01 November 2004 at 3:37am<br /><br /><P>Thought 1.</P><P>may be you forget to call</P><P><EM>paneManager.</EM>InstallDockingPanes(this); in OnCreate()</P><P>&nbsp;</P><P>Thought 2. </P><P>m_hWnd of CXTPDockingPaneAutoHidePanel is null only if you call </P><P>OnToggleViewCustomJobItems before any&nbsp;WM_SIZE event of CCustomJobFrame. (f.e. in OnCreate method) if so call RecalcLayout before you call OnToggleViewCustomJobItems.</P>]]>
   </description>
   <pubDate>Mon, 01 Nov 2004 03:37:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3773&amp;title=hide-and-select-pane-crashes#3773</guid>
  </item> 
  <item>
   <title><![CDATA[Hide and Select Pane Crashes : The code below causesour application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3763&amp;title=hide-and-select-pane-crashes#3763</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=804">Sorcerysoft</a><br /><strong>Subject:</strong> 1346<br /><strong>Posted:</strong> 29 October 2004 at 3:03pm<br /><br /><P>The code below causes&nbsp;our application to crash. I've tried a few variations of the code such as hiding and showing the pane by calling CXTPDockingPaneManager::HidePane() and CXTPDockingPaneManager::ShowPane(). Can someone help me resolve this problem? Thanks.</P><P><strong>---CODE------------------------------------</strong></P><P><EM>LRESULT CCustomJobFrame::OnToggleViewCustomJobItems( WPARAM wParam, LPARAM lParam )<BR>{<BR>&nbsp;CXTPDockingPane&nbsp;*pDockingPane = m_paneManager.FindPane( IDR_CUSTOMJOBITEMDATA );</EM></P><P><EM>&nbsp;if( pDockingPane != NULL )<BR>&nbsp;{<BR>&nbsp;&nbsp;if( pDockingPane-&gt;IsHidden() )<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;pDockingPane-&gt;Select();<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;pDockingPane-&gt;Hide();<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;return 0;<BR>}</EM></P><P><strong>---CALLSTACK---------------------------------</strong></P><P><EM>CWnd::Invalidate(int 0) line 126 + 43 bytes<BR>CXTPDockingPaneAutoHidePanel::ShowPane(CXTPDockingPane * 0x0214f938 {CXTPDockingPane}, int 1) line 817<BR>CXTPDockingPaneTabbedContainer::Show() line 720<BR>CXTPDockingPaneManager::ShowPane(CXTPDockingPane * 0x0214f938 {CXTPDockingPane}) line 587<BR>CXTPDockingPane::Select() line 154<BR>CCustomJobFrame::OnToggleViewCustomJobItems(unsigned int 192, long 2686977) line 290 + 11 bytes<BR>CWnd::OnWndMsg(unsigned int 1575, unsigned int 192, long 2686977, long * 0x0012f8a8) line 1815 + 17 bytes<BR>CWnd::WindowProc(unsigned int 1575, unsigned int 192, long 2686977) line 1585 + 30 bytes<BR>AfxCallWndProc(CWnd * 0x02112018, HWND__ * 0x015409c8, unsigned int 1575, unsigned int 192, long 2686977) line 215 + 26 bytes<BR>AfxWndProc(HWND__ * 0x015409c8, unsigned int 1575, unsigned int 192, long 2686977) line 368<BR>AfxWndProcBase(HWND__ * 0x015409c8, unsigned int 1575, unsigned int 192, long 2686977) line 220 + 21 bytes<BR>USER32! 77d48709()<BR>USER32! 77d487eb()<BR>USER32! 77d4c00e()<BR>USER32! 77d4e366()<BR>CXTPHookManager::HookWndProc(HWND__ * 0x015409c8, unsigned int 1575, unsigned int 192, long 2686977) line 101 + 28 bytes</EM><BR><BR><strong>---CRASHES HERE----------------------------</strong></P><P><EM>void CXTPDockingPaneAutoHidePanel::ShowPane(CXTPDockingPane* pPane, BOOL bSetFocus)<BR>{<BR>...<BR></EM><EM><strong>&nbsp;Invalidate(FALSE);<BR></strong>...<BR>}<BR><BR>_AFXWIN_INLINE void CWnd::Invalidate(BOOL bErase)<BR><strong>&nbsp;{ ASSERT(::IsWindow(m_hWnd)); ::InvalidateRect(m_hWnd, NULL, bErase); }<BR><BR>m_hWnd = NULL <IMG src="http://forum.codejock.com/smileys/smiley18.gif" border="0"></strong></EM></P>]]>
   </description>
   <pubDate>Fri, 29 Oct 2004 15:03:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1346&amp;PID=3763&amp;title=hide-and-select-pane-crashes#3763</guid>
  </item> 
 </channel>
</rss>