]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/sizer.h
Add missing wxUSE_OLE checks to safearray.cpp.
[wxWidgets.git] / include / wx / sizer.h
index 73229cc8a177ab8f73b25abab067cc6c56c97124..7e01ff8ad9b80a238aae2d04bc56fe5f326cd65c 100644 (file)
@@ -125,6 +125,10 @@ public:
 
     wxSizerFlags& Border(int direction, int borderInPixels)
     {
+        wxCHECK_MSG( !(direction & ~wxALL), *this,
+                     wxS("direction must be a combination of wxDirection ")
+                     wxS("enum values.") );
+
         m_flags &= ~wxALL;
         m_flags |= direction;
 
@@ -311,6 +315,10 @@ public:
         { return m_minSize; }
     wxSize GetMinSizeWithBorder() const;
 
+    wxSize GetMaxSize() const
+        { return IsWindow() ? m_window->GetMaxSize() : wxDefaultSize; }
+    wxSize GetMaxSizeWithBorder() const;
+
     void SetMinSize(const wxSize& size)
     {
         if ( IsWindow() )