else
state_w += MARGIN_BETWEEN_IMAGE_AND_TEXT;
}
- else
- {
- state = wxTREE_ITEMSTATE_NONE;
- }
}
m_height = (image_h > text_h) ? image_h : text_h;
void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
{
item->SetFont(this, dc);
+ item->CalculateSize(this, dc);
wxCoord text_h = item->GetTextHeight();