]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/statbox.h
add an assert indicating that old code overriding OnExecute() must be updated with 2.9
[wxWidgets.git] / include / wx / statbox.h
index 039df42af356b4a0dc597941cb6bb5a40c4316f5..e8f48c3eb398b766139cbe986da4bab91456b0dd 100644 (file)
 
 #include "wx/control.h"
 
-extern WXDLLEXPORT_DATA(const char) wxStaticBoxNameStr[];
+extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBoxNameStr[];
 
 // ----------------------------------------------------------------------------
 // wxStaticBox: a grouping box with a label
 // ----------------------------------------------------------------------------
 
-class WXDLLEXPORT wxStaticBoxBase : public wxControl
+class WXDLLIMPEXP_CORE wxStaticBoxBase : public wxControl
 {
 public:
     wxStaticBoxBase() { }
@@ -46,7 +46,10 @@ public:
         *borderOther = BORDER;
     }
 
-private:
+protected:
+    // choose the default border for this window
+    virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
+
     DECLARE_NO_COPY_CLASS(wxStaticBoxBase)
 };