diff options
author | Oliver Schneider <oliver@assarbad.net> | 2017-11-17 00:06:38 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2017-11-17 00:06:38 +0300 |
commit | ca332b38ce67be0865ecf1d9a4ebd2685a44381a (patch) | |
tree | da694b8d1ac110ebd58ab4af1f3df38d3cce3d11 | |
parent | 6ef769e212f74352454f91ea0e0557bc31bf2301 (diff) |
Fixing Issue #100 as per Alexander's suggestion.
-rw-r--r-- | windirstat/Controls/TreeListControl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/windirstat/Controls/TreeListControl.cpp b/windirstat/Controls/TreeListControl.cpp index f469b10..e2ca8a4 100644 --- a/windirstat/Controls/TreeListControl.cpp +++ b/windirstat/Controls/TreeListControl.cpp @@ -851,7 +851,7 @@ void CTreeListControl::CollapseItem(int i) } CWaitCursor wc; - LockWindowUpdate(); + SetRedraw(FALSE); bool selectNode = false; int todelete = 0; for(int k = i+1; k < GetItemCount(); k++) @@ -877,7 +877,7 @@ void CTreeListControl::CollapseItem(int i) SelectSingleItem(i); m_selectionAnchor = GetItem(i); } - UnlockWindowUpdate(); + SetRedraw(TRUE); RedrawItems(i, i); } @@ -928,7 +928,7 @@ void CTreeListControl::ExpandItem(int i, bool scroll) } CWaitCursor wc; // TODO: smart WaitCursor. In CollapseItem(), too. - LockWindowUpdate(); + SetRedraw(FALSE); item->SortChildren(); @@ -953,7 +953,7 @@ void CTreeListControl::ExpandItem(int i, bool scroll) } item->SetExpanded(true); - UnlockWindowUpdate(); + SetRedraw(TRUE); RedrawItems(i, i); if(scroll) |