X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67d947ba89b176c05c7707f44e4381bdef0f21c8..04fa04d8067d235ab45b5bc05b65f0679634b541:/src/univ/statbox.cpp?ds=inline diff --git a/src/univ/statbox.cpp b/src/univ/statbox.cpp index 0f878f5685..8e60fbad47 100644 --- a/src/univ/statbox.cpp +++ b/src/univ/statbox.cpp @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/statbox.cpp +// Name: src/univ/statbox.cpp // Purpose: wxStaticBox implementation // Author: Vadim Zeitlin // Modified by: // Created: 25.08.00 // RCS-ID: $Id$ // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "univstatbox.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -41,8 +37,6 @@ // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) - // ---------------------------------------------------------------------------- // wxStaticBox // ---------------------------------------------------------------------------- @@ -55,14 +49,15 @@ bool wxStaticBox::Create(wxWindow *parent, long style, const wxString &name) { - if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) - return FALSE; + // FIXME refresh just the right/bottom parts affected in OnSize + style |= wxFULL_REPAINT_ON_RESIZE; - m_hasDialogBackground = TRUE; + if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) + return false; SetLabel(label); - return TRUE; + return true; } void wxStaticBox::DoDraw(wxControlRenderer *renderer)