X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..cf9d4c676605b0829ed8457e63e6ce4fd3196428:/include/wx/statline.h diff --git a/include/wx/statline.h b/include/wx/statline.h index 6a8b7db0d5..c0ccedc762 100644 --- a/include/wx/statline.h +++ b/include/wx/statline.h @@ -47,7 +47,9 @@ public: static int GetDefaultSize() { return 2; } // overriden base class virtuals - virtual bool AcceptsFocus() const { return FALSE; } + virtual bool AcceptsFocus() const { return false; } + virtual void ApplyParentThemeBackground(const wxColour& bg) + { SetBackgroundColour(bg); } protected: // set the right size for the right dimension @@ -56,12 +58,12 @@ protected: wxSize sizeReal(size); if ( IsVertical() ) { - if ( size.x == -1 ) + if ( size.x == wxDefaultCoord ) sizeReal.x = GetDefaultSize(); } else { - if ( size.y == -1 ) + if ( size.y == wxDefaultCoord ) sizeReal.y = GetDefaultSize(); }