git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59293
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
public:
// draw the header control button (used by wxListCtrl)
{
public:
// draw the header control button (used by wxListCtrl)
- virtual void DrawHeaderButton(wxWindow *win,
- wxDC& dc,
- const wxRect& rect,
- int flags = 0,
- wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE,
- wxHeaderButtonParams* params=NULL);
+ virtual int DrawHeaderButton(wxWindow *win,
+ wxDC& dc,
+ const wxRect& rect,
+ int flags = 0,
+ wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE,
+ wxHeaderButtonParams* params=NULL);
virtual void DrawSplitterBorder(wxWindow *win,
wxDC& dc,
virtual void DrawSplitterBorder(wxWindow *win,
wxDC& dc,
// list/tree controls drawing
// ----------------------------------------------------------------------------
// list/tree controls drawing
// ----------------------------------------------------------------------------
wxRendererGTK::DrawHeaderButton(wxWindow *win,
wxDC& dc,
const wxRect& rect,
wxRendererGTK::DrawHeaderButton(wxWindow *win,
wxDC& dc,
const wxRect& rect,
"button",
dc.LogicalToDeviceX(rect.x) -1, rect.y -1, rect.width +2, rect.height +2
);
"button",
dc.LogicalToDeviceX(rect.x) -1, rect.y -1, rect.width +2, rect.height +2
);
+
+ return rect.width + 2;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------