diff --git a/include/wx/generic/statusbr.h b/include/wx/generic/statusbr.h index 6d0edd6ec2..996012b07a 100644 --- a/include/wx/generic/statusbr.h +++ b/include/wx/generic/statusbr.h @@ -81,7 +81,7 @@ protected: // true if the status bar shows the size grip: for this it must have // wxSTB_SIZEGRIP style and the window it is attached to must be resizable - // and not maximized + // and not maximized (note that currently size grip is only used in wxGTK) bool ShowsSizeGrip() const; // returns the position and the size of the size grip diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index eecc549de6..53ca7e1a8c 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -194,12 +194,17 @@ void wxStatusBarGeneric::DoUpdateFieldWidths() bool wxStatusBarGeneric::ShowsSizeGrip() const { + // Currently drawing size grip is implemented only in wxGTK. +#ifdef __WXGTK20__ if ( !HasFlag(wxSTB_SIZEGRIP) ) return false; wxTopLevelWindow * const tlw = wxDynamicCast(wxGetTopLevelParent(GetParent()), wxTopLevelWindow); return tlw && !tlw->IsMaximized() && tlw->HasFlag(wxRESIZE_BORDER); +#else // !__WXGTK20__ + return false; +#endif // __WXGTK20__/!__WXGTK20__ } void wxStatusBarGeneric::DrawFieldText(wxDC& dc, const wxRect& rect, int i, int textHeight)