don't draw buttons unless we have wxTR_HAS_BUTTONS style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -443,9 +443,8 @@ protected:
|
|||||||
// find the first item starting with the given prefix after the given item
|
// find the first item starting with the given prefix after the given item
|
||||||
wxTreeItemId FindItem(const wxTreeItemId& id, const wxString& prefix) const;
|
wxTreeItemId FindItem(const wxTreeItemId& id, const wxString& prefix) const;
|
||||||
|
|
||||||
bool HasButtons(void) const
|
bool HasButtons() const
|
||||||
{ return (m_imageListButtons != NULL)
|
{ return HasFlag(wxTR_HAS_BUTTONS) && (m_imageListButtons != NULL); }
|
||||||
|| HasFlag(wxTR_TWIST_BUTTONS|wxTR_HAS_BUTTONS); }
|
|
||||||
|
|
||||||
void CalculateLineHeight();
|
void CalculateLineHeight();
|
||||||
int GetLineHeight(wxGenericTreeItem *item) const;
|
int GetLineHeight(wxGenericTreeItem *item) const;
|
||||||
|
Reference in New Issue
Block a user