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
    54

    How to Create Buttons dynamically on Tool Bar

    HI,
    I wanted to create buttons dynamically on tool bar. I added a tool bar resource with 2 buttons & I tried to create buttons on tool bar dynamically .It is creating the buttons but the tool bar width is not changing.




  2. #2
    Join Date
    Jul 1999
    Location
    Switzerland, Zurich
    Posts
    121

    Re: How to Create Buttons dynamically on Tool Bar

    I think you should call CToolBar::AutoSize after adding button. Feel free to contact me if it will not help and provide me with your code.

    [email protected]

    Best Regards,
    Igor

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