X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0f1bdde5a4e8559078a566fb93e050b64940f32..0d57be459406c2830f6abc9d99ae99166c6d133b:/include/wx/motif/toolbar.h diff --git a/include/wx/motif/toolbar.h b/include/wx/motif/toolbar.h index 4ccb016fb9..f3c98e8d1e 100644 --- a/include/wx/motif/toolbar.h +++ b/include/wx/motif/toolbar.h @@ -32,7 +32,9 @@ class WXDLLEXPORT wxToolBar: public wxToolBarBase inline wxToolBar(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTB_HORIZONTAL, - const wxString& name = wxToolBarNameStr) + const wxString& name = wxToolBarNameStr): + m_widgets(wxKEY_INTEGER) + { Create(parent, id, pos, size, style, name); } @@ -69,6 +71,8 @@ class WXDLLEXPORT wxToolBar: public wxToolBarBase bool Realize() { return CreateTools(); }; protected: + // List of widgets in the toolbar, indexed by tool index + wxList m_widgets; DECLARE_EVENT_TABLE() };