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

    Changing the background colour of CToolBar

    i have created a CToolBar, is there a way to change the background as i need the buttons of CToolBar to be a different colour other than gray. Along with CToolBar i also need to change the colour of the context menu. Is there a way to do it??

  2. #2
    Join Date
    Jun 2003
    Location
    INDIA
    Posts
    586
    Did you try creating the toolbar with transparent style set and then changing the background color of the toolbar parent in OnCtlColor. (return a brush of ur color)

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