]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/statbox.cpp
Set wxSTREAM_WRITE_ERROR for wxFFileInputStream when open fails
[wxWidgets.git] / src / univ / statbox.cpp
index cae7591f1b9a85c1ce0588a413b89991ba149a4a..50a76c02afad1c33bc2ecd2c1bb30500477ee694 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     25.08.00
 // RCS-ID:      $Id$
 // Copyright:   (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -55,12 +55,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)