wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_COLLAPSING, GetId() );
event.m_item = item;
event.SetEventObject( this );
- if ( ProcessEvent( event ) && event.m_code )
+ if ( ProcessEvent( event ) && !event.IsAllowed() )
{
// cancelled by program
return;
// May be toggle off. Then wxTreeCtrl will spread when
// necessary (which might look ugly).
#if 1
- wxPaintDC dc(this);
+ wxClientDC dc(this);
m_lineHeight = (int)(dc.GetCharHeight() + 4);
int
width = 0,
wxGenericTreeItem *i=item.m_pItem;
- wxPaintDC dc(this);
+ wxClientDC dc(this);
PrepareDC( dc );
dc.SetLogicalFunction(wxINVERT);
wxGenericTreeItem *i=item.m_pItem;
- wxPaintDC dc(this);
+ wxClientDC dc(this);
PrepareDC( dc );
dc.SetLogicalFunction(wxINVERT);