![]() |
CXTPTabControl::Reposition slows down insertions! |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 13 June 2010 at 3:22pm |
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/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |