]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/ribbon/control.h
Make storing non-trivial data in wxThreadSpecificInfo possible.
[wxWidgets.git] / interface / wx / ribbon / control.h
index 4a79b47354d736354a38f73e3e6e52ea66ae2ae3..7d49661622b8a26729a4f657154778da887a3a29 100644 (file)
@@ -2,7 +2,6 @@
 // Name:        ribbon/control.h
 // Purpose:     interface of wxRibbonControl
 // Author:      Peter Cawley
-// RCS-ID:      $Id$
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -148,6 +147,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.