X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c86a7fa9e1331a9d331a525ca39000c8d9a257f..8c16f80618ea2204e06e1cbf7424bd77617ae9a4:/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp diff --git a/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp b/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp index f815aa8dab..a08a675171 100644 --- a/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp +++ b/wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp @@ -1194,7 +1194,8 @@ void wxTreeListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) if ((image != -1) && imageList) params.m_labelBitmap = imageList->GetBitmap(image); - wxRendererNative::Get().DrawHeaderButton(this, dc, rect, flags, ¶ms); + wxRendererNative::Get().DrawHeaderButton(this, dc, rect, flags, + wxHDR_SORT_ICON_NONE, ¶ms); } if (x < w) { @@ -1855,8 +1856,6 @@ bool wxTreeListMainWindow::Create (wxTreeListCtrl *parent, const wxString& name) { #ifdef __WXMAC__ - if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS; - if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_BUTTONS; style &= ~wxTR_LINES_AT_ROOT; style |= wxTR_NO_LINES;