Update TreeView with Invalidate instead of Refresh
Original Reporter info from Mantis: cobines
-
Reporter name:
Original Reporter info from Mantis: cobines
- Reporter name:
Description:
In the TreeView there are many calls to TreeView.Invalidate but
TTreeNodes.SetUpdateState and TTreeStrings.SetUpdateState call
TreeView.Refresh instead. Refresh calls TWidgetSet.UpdateWindow which
on Win32 and GTK2 causes repaint of the control via synchronous
WM_PAINT.
I think Invalidate is enough to cause the control to be repainted. At least multiple calls to Invalidate cause only one Paint later.
Mantis conversion info:
- Mantis ID: 21601
- OS: Windows XP
- OS Build: SP3
- Build: 36431
- Platform: Win32
- Version: 0.9.31 (SVN)
- Fixed in revision: r36438 (#9cc2b017)