]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/ribbon/panel.h
Use wxString::t_str() in calls to Windows API functions in wxMSW.
[wxWidgets.git] / include / wx / ribbon / panel.h
index 8a48c836fb54c93cfb9ed12c6abc027e9c1695e5..51d49c7964e1e3241dd3b3f7320f94e2a48efbf1 100644 (file)
@@ -24,6 +24,7 @@ enum wxRibbonPanelOption
     wxRIBBON_PANEL_EXT_BUTTON       = 1 << 3,
     wxRIBBON_PANEL_MINIMISE_BUTTON  = 1 << 4,
     wxRIBBON_PANEL_STRETCH          = 1 << 5,
+    wxRIBBON_PANEL_FLEXIBLE         = 1 << 6,
 
     wxRIBBON_PANEL_DEFAULT_STYLE    = 0
 };
@@ -75,6 +76,11 @@ public:
     wxRibbonPanel* GetExpandedDummy();
     wxRibbonPanel* GetExpandedPanel();
 
+    // Finds the best width and height given the parent's width and height
+    virtual wxSize GetBestSizeForParentSize(const wxSize& parentSize) const;
+
+    long GetFlags() { return m_flags; }
+
 protected:
     virtual wxSize DoGetBestSize() const;
     virtual wxSize GetPanelSizerBestSize() const;