<?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 : Changing ribbon-tab causes extreme delay</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Changing ribbon-tab causes extreme delay]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 06:46:56 +0000</pubDate>
  <lastBuildDate>Tue, 10 Mar 2009 17:17:42 +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=13316</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[Changing ribbon-tab causes extreme delay : Ooooooooooooooops!     Accidently...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=46498&amp;title=changing-ribbontab-causes-extreme-delay#46498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13316<br /><strong>Posted:</strong> 10 March 2009 at 5:17pm<br /><br />Ooooooooooooooops! <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0"><DIV></DIV><DIV></DIV><FONT color=#010001 size=2><FONT color=#010001 size=2><DIV>&nbsp;</DIV><DIV>Accidently had several pane windows&nbsp;with the same id: AFX_IDW_PANE_FIRST. Bad idea!!</DIV><DIV>&nbsp;</DIV><DIV>Sorry for bloating your forum.</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 10 Mar 2009 17:17:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=46498&amp;title=changing-ribbontab-causes-extreme-delay#46498</guid>
  </item> 
  <item>
   <title><![CDATA[Changing ribbon-tab causes extreme delay : Got some more information now....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=46477&amp;title=changing-ribbontab-causes-extreme-delay#46477</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13316<br /><strong>Posted:</strong> 10 March 2009 at 5:17am<br /><br /><DIV>Got some more information now. The delay is present when my chart window (Nevron OCX) receives WM_SIZE, SIZE_RESTORED, (2, 2).</DIV><DIV>I have no idea where this message comes from, but it is only sent when selecting the tabs as previously described. That is:</DIV><DIV>&nbsp;</DIV><DIV>Tab1 is selected. Layout1 is set.</DIV><DIV>Tab3 is selected. Layout3 is set. OCX is resized (in OnWindowPosChanged). Long delay due to mysterious WM_SIZE.</DIV><DIV>Tab2 is selected. Layout2 is set. (WM_SIZE not sent to OCX)</DIV><DIV>Tab1 is selected. Layout1 is set. (WM_SIZE sent to OCX!!!)<BR></DIV><DIV>It makes no sense! Where does this message come from? All I do is switching layout, and recalcing the frame layout. (XTP 13.0.0, XP SP2 Classic)</DIV>]]>
   </description>
   <pubDate>Tue, 10 Mar 2009 05:17:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=46477&amp;title=changing-ribbontab-causes-extreme-delay#46477</guid>
  </item> 
  <item>
   <title><![CDATA[Changing ribbon-tab causes extreme delay : Good idea. Thanks.  Still, I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45140&amp;title=changing-ribbontab-causes-extreme-delay#45140</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13316<br /><strong>Posted:</strong> 05 February 2009 at 3:12am<br /><br />Good idea. Thanks.<DIV>&nbsp;</DIV><DIV>Still, I wonder why I get WM_WINDOWPOSCHANGED when selecting/deselecting tabs that have nothing to do with this pane!</DIV><DIV>&nbsp;</DIV><DIV>It seems like XTP fires some size messages when it shouldn't!</DIV>]]>
   </description>
   <pubDate>Thu, 05 Feb 2009 03:12:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45140&amp;title=changing-ribbontab-causes-extreme-delay#45140</guid>
  </item> 
  <item>
   <title><![CDATA[Changing ribbon-tab causes extreme delay : Hi,  Difficult to say without...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45127&amp;title=changing-ribbontab-causes-extreme-delay#45127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13316<br /><strong>Posted:</strong> 04 February 2009 at 1:46pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Difficult to say without debugging. Guess most easy way is add some size varaible - last size of chart control and don't call&nbsp;&nbsp;<FONT color=#010001 size=2>MoveWindow if coordinates same.</DIV></FONT>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 13:46:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45127&amp;title=changing-ribbontab-causes-extreme-delay#45127</guid>
  </item> 
  <item>
   <title><![CDATA[Changing ribbon-tab causes extreme delay : Oleg? Do you need a sample to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45119&amp;title=changing-ribbontab-causes-extreme-delay#45119</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13316<br /><strong>Posted:</strong> 04 February 2009 at 3:27am<br /><br />Oleg? Do you need a sample to understand this?<DIV>&nbsp;</DIV><DIV>To me, the problem is obvious. The underlying OCX is slow on resize. However, it makes no sense that I get WM_WINDOWPOSCHANGED when I selected/deselect&nbsp;<EM>other</EM> tabs!</DIV>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 03:27:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45119&amp;title=changing-ribbontab-causes-extreme-delay#45119</guid>
  </item> 
  <item>
   <title><![CDATA[Changing ribbon-tab causes extreme delay : XTP 12.1.1, VS 2008 SP1.  I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45084&amp;title=changing-ribbontab-causes-extreme-delay#45084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 13316<br /><strong>Posted:</strong> 02 February 2009 at 4:19pm<br /><br />XTP 12.1.1, VS 2008 SP1.<DIV>&nbsp;</DIV><DIV>I have three tabs in my ribbon-application:</DIV><DIV>T1&nbsp;|&nbsp;T2 | T3</DIV><DIV>&nbsp;</DIV><DIV>I handle TCN_SELCHANGE in CMainFrame and switch pre-created pane-layouts depending on the tab-ID. In the T3-layout there is a pane-view with a COM-based charting control occupying the whole view area.</DIV><DIV>&nbsp;</DIV><DIV>The problems begin <U>after</U> the Chart-tab (T3) has been activated at least once!&nbsp;This is truly crazy:</DIV><DIV>&nbsp;</DIV><DIV>T3 selected... ok</DIV><DIV>T2 selected... ok</DIV><DIV>T1 selected... 10 sec delay! (Path T2-&gt;T1)</DIV><DIV>T3 selected... ok</DIV><DIV>T1 selected... ok</DIV><DIV>T2 selected...&nbsp;10 sec delay! (Path T1-&gt;T2)</DIV><DIV>T1 selected... ok</DIV><DIV>T2 selected... ok</DIV><DIV>T3 selected...&nbsp;10 sec delay! (Path T2-&gt;T3)</DIV><DIV>a.s.o.</DIV><DIV>&nbsp;</DIV><DIV>There is always one path that seems to cause the delay, but the combination change after the "bad" T3-tab has been selected.</DIV><DIV>&nbsp;</DIV><DIV>I've traced the cause to my chart view in T3:</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><DIV>void</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>CChartView</FONT></FONT><FONT size=2>::</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>OnWindowPosChanged</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>WINDOWPOS</FONT></FONT><FONT size=2>* </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>lpwndpos</FONT></FONT><FONT size=2>)</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp; // This is causing the delay... sometimes!</DIV><DIV>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>m_wndChart</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>MoveWindow</FONT></FONT><FONT size=2>(0, 0, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>lpwndpos</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cx</FONT></FONT><FONT size=2>, </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>lpwndpos</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>cy</FONT></FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2>}</FONT></DIV></DIV><DIV>&nbsp;</DIV><DIV>I timed the call during tab-selection, and caught this:</DIV><DIV>CChartView::OnWindowPosChanged: 0 ms, SWP_NOSIZE SWP_NOZORDER SWP_NOREDRAW<BR>CChartView::OnWindowPosChanged: 0 ms, SWP_NOSIZE SWP_NOZORDER SWP_NOACTIVATE SWP_SHOWWINDOW<BR>CChartView::OnWindowPosChanged: <strong>1872 ms</strong>, SWP_NOZORDER SWP_NOACTIVATE<BR>CChartView::OnWindowPosChanged: <strong>2777 ms</strong>, SWP_NOZORDER SWP_NOACTIVATE<BR>CChartView::OnWindowPosChanged: <strong>2511 ms</strong>, SWP_NOZORDER SWP_NOACTIVATE<BR></DIV><DIV>&nbsp;</DIV><DIV><strong><FONT color=#ff0000>My question</FONT></strong></DIV><DIV>I really don't see what I'm doing wrong here. Certainly, there seems to be a problem with the drawing of the charting control, but where do those extra WM_WINDOWPOSCHANGED messages come from? <U>When I deselect T1 and select T2, in my opinion T3 should NOT change!</U></DIV>]]>
   </description>
   <pubDate>Mon, 02 Feb 2009 16:19:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13316&amp;PID=45084&amp;title=changing-ribbontab-causes-extreme-delay#45084</guid>
  </item> 
 </channel>
</rss>