ENH: reduce flicker
This commit is contained in:
parent
0c4bec7563
commit
f3d1225669
@ -735,6 +735,7 @@ void CPropertyList::InvalidateList()
|
|||||||
|
|
||||||
void CPropertyList::ShowAdvanced()
|
void CPropertyList::ShowAdvanced()
|
||||||
{
|
{
|
||||||
|
this->SetRedraw(FALSE);
|
||||||
this->ResetContent();
|
this->ResetContent();
|
||||||
m_ShowAdvanced = true;
|
m_ShowAdvanced = true;
|
||||||
std::map<std::string, CPropertyItem*> sortProps;
|
std::map<std::string, CPropertyItem*> sortProps;
|
||||||
@ -761,12 +762,14 @@ void CPropertyList::ShowAdvanced()
|
|||||||
this->AddPropItem(item, 2);
|
this->AddPropItem(item, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->SetRedraw(TRUE);
|
||||||
this->InvalidateList();
|
this->InvalidateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CPropertyList::HideAdvanced()
|
void CPropertyList::HideAdvanced()
|
||||||
{
|
{
|
||||||
|
this->SetRedraw(FALSE);
|
||||||
this->ResetContent();
|
this->ResetContent();
|
||||||
m_ShowAdvanced = false;
|
m_ShowAdvanced = false;
|
||||||
std::map<std::string, CPropertyItem*> sortProps;
|
std::map<std::string, CPropertyItem*> sortProps;
|
||||||
@ -793,6 +796,7 @@ void CPropertyList::HideAdvanced()
|
|||||||
this->AddPropItem(item, 2);
|
this->AddPropItem(item, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->SetRedraw(TRUE);
|
||||||
this->InvalidateList();
|
this->InvalidateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user