]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/statbox.cpp
Rename delegates to try and stop name clashes, probably with wxWebKitCtrl.
[wxWidgets.git] / src / univ / statbox.cpp
index e1df45fb23429ef5caf0d13b7bb44e5a12f3c3c6..8e60fbad47de4e590d1e5820da6731c2d10f96e1 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        univ/statbox.cpp
+// Name:        src/univ/statbox.cpp
 // Purpose:     wxStaticBox implementation
 // Author:      Vadim Zeitlin
 // Modified by:
 // 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)