Toolbar and Menu background colour

hi

Could anyone please tell me a way to change the default vanilla colour background colour of a menu and toolbar to another colour. I have seen some owner draw functions, where people have changed the background colour but not for the entire bar, i mean right from one end to another. If i could get the DC object for the entire bar somehow i could be able to do it, maybe. Any kind of help would be much appreciated. Thanks

Abhishek




Answer this question

Toolbar and Menu background colour

  • Learner.example

    Derive a class from CToolBar and handle OnEraseBkgnd. For the menu, you'd need to owner draw it (lots of samples available on Code Project - http://www.codeproject.com/menu/ )

    septembereleven wrote:

    hi

    Could anyone please tell me a way to change the default vanilla colour background colour of a menu and toolbar to another colour. I have seen some owner draw functions, where people have changed the background colour but not for the entire bar, i mean right from one end to another. If i could get the DC object for the entire bar somehow i could be able to do it, maybe. Any kind of help would be much appreciated. Thanks

    Abhishek



  • Toolbar and Menu background colour