X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca7497c2a286ea6ae753a672572bdc5db3438a89..120b822df16ae27b64fe73b27d649cb89f166f46:/src/univ/statusbr.cpp?ds=sidebyside diff --git a/src/univ/statusbr.cpp b/src/univ/statusbr.cpp index 143b6fcde8..a4a98d952d 100644 --- a/src/univ/statusbr.cpp +++ b/src/univ/statusbr.cpp @@ -35,6 +35,7 @@ #endif #include "wx/statusbr.h" +#include "wx/toplevel.h" #include "wx/univ/renderer.h" @@ -122,12 +123,15 @@ void wxStatusBarUniv::DoDraw(wxControlRenderer *renderer) if ( IsExposed(rect) ) { + wxTopLevelWindow *parentTLW = wxDynamicCast(GetParent(), wxTopLevelWindow); + // the size grip may be drawn only on the last field and only if we // have the corresponding style and even then only if we really can // resize this frame if ( n == m_nFields - 1 && HasFlag(wxST_SIZEGRIP) && - GetParent()->HasFlag(wxRESIZE_BORDER) ) + GetParent()->HasFlag(wxRESIZE_BORDER) && + parentTLW && !parentTLW->IsMaximized() ) { // NB: we use wxCONTROL_ISDEFAULT for this because it doesn't // have any meaning for the status bar otherwise anyhow