don't show size grip when maximized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
@@ -4204,8 +4204,11 @@ wxWin32StatusBarInputHandler(wxInputHandler *handler)
|
||||
bool wxWin32StatusBarInputHandler::IsOnGrip(wxWindow *statbar,
|
||||
const wxPoint& pt) const
|
||||
{
|
||||
wxTopLevelWindow *parentTLW = wxDynamicCast(statbar->GetParent(), wxTopLevelWindow);
|
||||
|
||||
if ( statbar->HasFlag(wxST_SIZEGRIP) &&
|
||||
statbar->GetParent()->HasFlag(wxRESIZE_BORDER) )
|
||||
statbar->GetParent()->HasFlag(wxRESIZE_BORDER) &&
|
||||
parentTLW && !parentTLW->IsMaximized() )
|
||||
{
|
||||
wxSize sizeSbar = statbar->GetSize();
|
||||
|
||||
|
Reference in New Issue
Block a user