CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2001
    Location
    Singapore
    Posts
    200

    Problem with CToorlBar

    The CToolBar class has a function SetSize() to set the size for the buttons within the toolbar. However this fucntion will only allow all the buttons within the Toolbar to have the same size.

    I need 1 button to be much wider than the rest of the buttons within the same Toolbar. Is there a way to do it?

  2. #2
    Join Date
    Feb 2003
    Location
    Greece-Athens
    Posts
    57
    Try using CToolBar::GetItemRect member function and modify the RECT structure which is returned.

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