CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    4

    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


  2. #2
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured