]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/tbarbase.h
Committing in .
[wxWidgets.git] / include / wx / tbarbase.h
index 863264c29048004ff1ccbe5c5b9f5bd3ef7939e1..aa19f52861e9ab70b892c69f421d8e49587ead7c 100644 (file)
@@ -221,6 +221,16 @@ public:
     // toolbar construction
     // --------------------
 
+    // the most commonly used version of AddTool()
+    wxToolBarToolBase *AddTool(int id,
+                               const wxBitmap& bitmap,
+                               const wxString& shortHelpString = wxEmptyString,
+                               const wxString& longHelpString = wxEmptyString)
+    {
+        return AddTool(id, bitmap, wxNullBitmap, FALSE, NULL,
+                       shortHelpString, longHelpString);
+    }
+
     // If pushedBitmap is NULL, a reversed version of bitmap is created and
     // used as the pushed/toggled image. If toggle is TRUE, the button toggles
     // between the two states.