CXTPTabControl::Reposition slows down insertions! |
Post Reply |
Author | |
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Posted: 14 June 2010 at 4:50am |
Thanks, added SetLockRedraw for future:
void CXTPTabControl::SetLockRedraw(BOOL bLockRedraw) { m_nLockRedraw += bLockRedraw ? +1 : -1; ASSERT(m_nLockRedraw >= 0); if (m_nLockRedraw == 0) Reposition(); } void CXTPTabControl::Reposition() { if (!GetSafeHwnd()) return; if (m_nLockRedraw > 0) return; |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
XTP 13.4.
Calling CXTPTabControl::AddItem multiple times slows down insertions a LOT!
It should be possible to add items without calling Reposition:
for (...)
tab.AddItem(..., FALSE);
tab.Reposition();
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |