added wxToolBar::SetToolClientData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user