- if (!CommandBar_InsertMenubarEx((HWND) m_commandBar, NULL,
- (LPTSTR) (HMENU) m_hMenu, 0))
- {
- wxFAIL_MSG( _T("failed to set menubar") );
- return;
- }
- CommandBar_DrawMenuBar((HWND) m_commandBar, 0);
+ wxToolBar* toolBar = new wxToolBar(this, -1,
+ wxDefaultPosition, wxDefaultSize,
+ wxBORDER_NONE | wxTB_HORIZONTAL,
+ wxToolBarNameStr, GetMenuBar());
+ SetToolBar(toolBar);