|
-
May 7th, 1999, 06:47 PM
#1
How do I set the title for a floating tool bar
Please could someone tell me how to set the title for a floating toolbar thanks
-
May 9th, 1999, 02:15 AM
#2
Re: How do I set the title for a floating tool bar
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|