The title of the toolbar and also the menu item ID_VIEW_TOOLBAR remains empty. I have tried to set it within CMainFrame::OnCreate
:
CString strToolbar;
strToolbar.LoadStringA(IDS_TOOLBAR_STANDARD); // IDS_TOOLBAR_STANDARD = "Standard"
m_wndToolBar.SetWindowText(strToolbar);
DockPane(&m_wndToolBar);
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
EnablePaneMenu(TRUE, ID_ANSICHT_ANPASSEN, "Anpassen", ID_VIEW_TOOLBAR);
The menu Looks like following:
Do you know how to set it properly?
To solve this problem, I had create the Toolbar by explicitly specifying the ID of the Toolbar (instead of using the default argument of the function).
After this I could set the title of the toolbar to what I want:
I got it working after reading this thread.