X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf511e872e3c4b7b6550bdd548aa1e1c3becef0a..3b5d20079c81e0106b3dead7cd8d7337bf3f36f4:/src/mac/carbon/renderer.cpp diff --git a/src/mac/carbon/renderer.cpp b/src/mac/carbon/renderer.cpp index bf271a27bb..15d9ef20b1 100644 --- a/src/mac/carbon/renderer.cpp +++ b/src/mac/carbon/renderer.cpp @@ -34,7 +34,7 @@ class WXDLLEXPORT wxRendererMac : public wxDelegateRendererNative { public: // draw the header control button (used by wxListCtrl) - virtual void DrawHeaderButton( wxWindow *win, + virtual int DrawHeaderButton( wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0, @@ -97,7 +97,7 @@ wxRendererNative& wxRendererNative::GetDefault() return s_rendererMac; } -void wxRendererMac::DrawHeaderButton( wxWindow *win, +int wxRendererMac::DrawHeaderButton( wxWindow *win, wxDC& dc, const wxRect& rect, int flags, @@ -200,7 +200,7 @@ void wxRendererMac::DrawHeaderButton( wxWindow *win, } flags &= ~wxCONTROL_SELECTED; - DrawHeaderButtonContents(win, dc, newRect, flags, sortArrow, params); + return DrawHeaderButtonContents(win, dc, newRect, flags, sortArrow, params); }