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);
}
// necessary for completing the toolbar construction.
bool Realize() { return CreateTools(); };
+// Implementation
+ void DestroyPixmaps();
+ int FindIndexForWidget(WXWidget w);
+ WXWidget FindWidgetForIndex(int index);
+
protected:
+ // List of widgets in the toolbar, indexed by tool index
+ wxList m_widgets;
+
+ // List of pixmaps to destroy when tools are recreated or
+ // or toolbar is destroyed.
+ wxList m_pixmaps;
DECLARE_EVENT_TABLE()
};