Please could someone tell me how to set the title for a floating toolbar thanks
Printable View
Please could someone tell me how to set the title for a floating toolbar thanks
simply set the toolbar's window text. For example, in CMainFrame::OnCreate() you've probably got some code like this:
if (!m_wndAlignBar.Create(this) || !m_wndAlignBar.LoadToolBar(IDR_ALIGN))
{
TRACE0("Failed to create alignbar\n");
return -1; // fail to create
}
m_wndAlignBar.SetWindowText("Align");
m_wndAlignBar.SetBarStyle(m_wndAlignBar.GetBarStyle() | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
Just add that "SetWindowText()" call.