- CommandBar_InsertMenubarEx((HWND) m_commandBar, wxGetInstance(),
- (LPTSTR) (HMENU) m_hMenu, 0);
+ wxToolBar* toolBar = new wxToolBar(this, -1,
+ wxDefaultPosition, wxDefaultSize,
+ wxBORDER_NONE | wxTB_HORIZONTAL,
+ wxToolBarNameStr, GetMenuBar());
+ SetToolBar(toolBar);