diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-05 15:26:51 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-01-05 15:26:51 (GMT) |
commit | f3d1225669e0920aa172329842ff73aec75e6651 (patch) | |
tree | d996a0a7b1b646a022633b157695a11ef9ddce23 /Source/MFCDialog | |
parent | 0c4bec756312a21c9afaf4fd7f648c242b2da5dd (diff) | |
download | CMake-f3d1225669e0920aa172329842ff73aec75e6651.zip CMake-f3d1225669e0920aa172329842ff73aec75e6651.tar.gz CMake-f3d1225669e0920aa172329842ff73aec75e6651.tar.bz2 |
ENH: reduce flicker
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index a0e2755..01ab486 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -735,6 +735,7 @@ void CPropertyList::InvalidateList() void CPropertyList::ShowAdvanced() { + this->SetRedraw(FALSE); this->ResetContent(); m_ShowAdvanced = true; std::map<std::string, CPropertyItem*> sortProps; @@ -761,12 +762,14 @@ void CPropertyList::ShowAdvanced() this->AddPropItem(item, 2); } } + this->SetRedraw(TRUE); this->InvalidateList(); } void CPropertyList::HideAdvanced() { + this->SetRedraw(FALSE); this->ResetContent(); m_ShowAdvanced = false; std::map<std::string, CPropertyItem*> sortProps; @@ -793,6 +796,7 @@ void CPropertyList::HideAdvanced() this->AddPropItem(item, 2); } } + this->SetRedraw(TRUE); this->InvalidateList(); } |