<?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 : CXTPTabControl::Reposition slows down insertions!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPTabControl::Reposition slows down insertions!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:37:06 +0000</pubDate>
  <lastBuildDate>Mon, 14 Jun 2010 04:50:09 +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=16817</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[CXTPTabControl::Reposition slows down insertions! : Thanks, added SetLockRedraw for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16817&amp;PID=58927&amp;title=cxtptabcontrolreposition-slows-down-insertions#58927</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 16817<br /><strong>Posted:</strong> 14 June 2010 at 4:50am<br /><br />Thanks, added SetLockRedraw for future:<br /><br />void CXTPTabControl::SetLockRedraw(BOOL bLockRedraw)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_nLockRedraw += bLockRedraw ? +1 : -1;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(m_nLockRedraw &gt;= 0);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (m_nLockRedraw == 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reposition();<br />}<br /><br />void CXTPTabControl::Reposition()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!GetSafeHwnd())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (m_nLockRedraw &gt; 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;]]>
   </description>
   <pubDate>Mon, 14 Jun 2010 04:50:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16817&amp;PID=58927&amp;title=cxtptabcontrolreposition-slows-down-insertions#58927</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabControl::Reposition slows down insertions! :  XTP 13.4.  Calling CXTPTabControl::AddItem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16817&amp;PID=58918&amp;title=cxtptabcontrolreposition-slows-down-insertions#58918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 16817<br /><strong>Posted:</strong> 13 June 2010 at 3:22pm<br /><br /><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><DIV><FONT color=#000000>XTP 13.4.</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>Calling CXTPTabControl::AddItem multiple times slows down insertions a LOT!</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>It should be possible to add items without calling Reposition:</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>for (...)</FONT></DIV><DIV><FONT color=#000000>&nbsp;&nbsp; tab.AddItem(..., <strong>FALSE</strong>);</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>tab.Reposition();</FONT></DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Sun, 13 Jun 2010 15:22:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16817&amp;PID=58918&amp;title=cxtptabcontrolreposition-slows-down-insertions#58918</guid>
  </item> 
 </channel>
</rss>