From 50e38d88a217b4fa4501aeaeb7258bc6eb395407 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 5 Aug 2000 15:53:54 +0000 Subject: [PATCH] added another inline AddTool git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/tbarbase.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/wx/tbarbase.h b/include/wx/tbarbase.h index 863264c290..aa19f52861 100644 --- a/include/wx/tbarbase.h +++ b/include/wx/tbarbase.h @@ -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.