X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a0681f9338345d0ef32b2ad809d49fd20861119..3f5513f5bb1cb46db13ac38d010458c7e863208c:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index 7864d099dd..f66ce0f3b1 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -403,6 +403,15 @@ wxObject *wxToolBarBase::GetToolClientData(int id) const return tool ? tool->GetClientData() : (wxObject *)NULL; } +void wxToolBarBase::SetToolClientData(int id, wxObject *clientData) +{ + wxToolBarToolBase *tool = FindById(id); + + wxCHECK_RET( tool, _T("no such tool in wxToolBar::SetToolClientData") ); + + tool->SetClientData(clientData); +} + bool wxToolBarBase::GetToolState(int id) const { wxToolBarToolBase *tool = FindById(id);