X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a290fa5a7deebe9d96c0c0089d18e27d4bd9b624..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/univ/statbox.cpp diff --git a/src/univ/statbox.cpp b/src/univ/statbox.cpp index 20316fc323..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,6 +49,9 @@ 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;