Removed crashes when not using themes.

Removed much flicker form tree ctrl and list ctrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-01-04 22:56:58 +00:00
parent 64d78265d0
commit e6527f9dd4
9 changed files with 80 additions and 36 deletions

View File

@@ -589,14 +589,12 @@ void wxTreeCtrl::SetIndent(unsigned int indent)
{
m_indent = indent;
m_dirty = TRUE;
Refresh();
}
void wxTreeCtrl::SetSpacing(unsigned int spacing)
{
m_spacing = spacing;
m_dirty = TRUE;
Refresh();
}
size_t wxTreeCtrl::GetChildrenCount(const wxTreeItemId& item, bool recursively)
@@ -2160,6 +2158,8 @@ void wxTreeCtrl::CalculatePositions()
void wxTreeCtrl::RefreshSubtree(wxGenericTreeItem *item)
{
if (m_dirty) return;
wxClientDC dc(this);
PrepareDC(dc);
@@ -2180,6 +2180,8 @@ void wxTreeCtrl::RefreshSubtree(wxGenericTreeItem *item)
void wxTreeCtrl::RefreshLine( wxGenericTreeItem *item )
{
if (m_dirty) return;
wxClientDC dc(this);
PrepareDC( dc );