From f3d1225669e0920aa172329842ff73aec75e6651 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 5 Jan 2004 10:26:51 -0500 Subject: ENH: reduce flicker --- Source/MFCDialog/PropertyList.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 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 sortProps; @@ -793,6 +796,7 @@ void CPropertyList::HideAdvanced() this->AddPropItem(item, 2); } } + this->SetRedraw(TRUE); this->InvalidateList(); } -- cgit v0.12