#include "wx/tbarbase.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_ABSTRACT_CLASS(wxToolBarBase, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool, wxObject)
EVT_SIZE(wxToolBarBase::OnSize)
EVT_IDLE(wxToolBarBase::OnIdle)
END_EVENT_TABLE()
-#endif
// Keep a list of all toolbars created, so you can tell whether a toolbar
// is still valid: a tool may have quit the toolbar.
}
m_shortHelpString = helpS1;
m_longHelpString = helpS2;
+ m_control = (wxControl*) NULL;
}
wxToolBarTool::wxToolBarTool(wxControl *control)
{
m_toolStyle = wxTOOL_STYLE_CONTROL;
m_control = control;
+ m_index = control->GetId();
}
wxToolBarTool::~wxToolBarTool()