X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..51ec29ea5d1d1093bafbae27a8483211a90d9659:/src/univ/statbox.cpp?ds=sidebyside diff --git a/src/univ/statbox.cpp b/src/univ/statbox.cpp index e1df45fb23..8e60fbad47 100644 --- a/src/univ/statbox.cpp +++ b/src/univ/statbox.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/statbox.cpp +// Name: src/univ/statbox.cpp // Purpose: wxStaticBox implementation // Author: Vadim Zeitlin // Modified by: @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "univstatbox.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -41,8 +37,6 @@ // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) - // ---------------------------------------------------------------------------- // wxStaticBox // ---------------------------------------------------------------------------- @@ -55,12 +49,15 @@ bool wxStaticBox::Create(wxWindow *parent, long style, const wxString &name) { + // FIXME refresh just the right/bottom parts affected in OnSize + style |= wxFULL_REPAINT_ON_RESIZE; + if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) - return FALSE; + return false; SetLabel(label); - return TRUE; + return true; } void wxStaticBox::DoDraw(wxControlRenderer *renderer)