djlovelock
May 7th, 1999, 06:47 PM
Please could someone tell me how to set the title for a floating toolbar thanks
|
Click to See Complete Forum and Search --> : How do I set the title for a floating tool bar djlovelock May 7th, 1999, 06:47 PM Please could someone tell me how to set the title for a floating toolbar thanks May 9th, 1999, 02:15 AM 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. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |