]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/ribbon/control.h
Add wxRibbonControl::GetAncestorRibbonBar() helper.
[wxWidgets.git] / interface / wx / ribbon / control.h
index 4a79b47354d736354a38f73e3e6e52ea66ae2ae3..88e0c85ee0d9523166c2b971dad4c4aeb4c2503a 100644 (file)
@@ -148,6 +148,15 @@ public:
     */
     bool Realise();
 
+    /**
+        Get the first ancestor which is a wxRibbonBar (or derived) or NULL
+        if not having such parent.
+
+        @since 2.9.4
+     */
+    virtual wxRibbonBar* GetAncestorRibbonBar()const;
+
+
     /**
         Finds the best width and height given the parent's width and height.
         Used to implement the wxRIBBON_PANEL_FLEXIBLE panel style.