}
item->Expand();
- CalculatePositions();
+ if ( !m_freezeCount )
+ {
+ CalculatePositions();
- RefreshSubtree(item);
+ RefreshSubtree(item);
+ }
+ else // frozen
+ {
+ m_dirty = true;
+ }
event.SetEventType(wxEVT_COMMAND_TREE_ITEM_EXPANDED);
GetEventHandler()->ProcessEvent( event );
if ( --m_freezeCount == 0 )
{
- Refresh();
+ if ( m_dirty )
+ DoDirtyProcessing();
+ else
+ Refresh();
}
}