]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/aui/auibar.h
Add wxAuiToolBar::Create().
[wxWidgets.git] / interface / wx / aui / auibar.h
index 303a14ba0f0b96a0b39181092b9355b4ee239d25..e02e3cd785a6e7ce29588f7ad70327622a13e800 100644 (file)
@@ -596,11 +596,32 @@ public:
 class wxAuiToolBar : public wxControl
 {
 public:
+    /**
+        Default constructor, use Create() later.
+
+        @since 2.9.5
+     */
+    wxAuiToolBar();
+
+    /**
+        Constructor creating and initializing the object.
+     */
     wxAuiToolBar(wxWindow* parent,
-                 wxWindowID id = -1,
+                 wxWindowID id = wxID_ANY,
                  const wxPoint& position = wxDefaultPosition,
                  const wxSize& size = wxDefaultSize,
                  long style = wxAUI_TB_DEFAULT_STYLE);
+
+    /**
+        Really create wxAuiToolBar created using default constructor.
+
+        @since 2.9.5
+     */
+    bool Create(wxWindow* parent,
+                wxWindowID id = wxID_ANY,
+                const wxPoint& pos = wxDefaultPosition,
+                const wxSize& size = wxDefaultSize,
+                long style = wxAUI_TB_DEFAULT_STYLE);
     virtual ~wxAuiToolBar();
 
     void SetWindowStyleFlag(long style);