Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How change the menu background color?

How change the menu background color?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cris
    wrote on last edited by
    #1

    Hello, I have to find how change the menu background color (menubar and menuitems), but nothing yet. On true, I want to change my dialog based app background color (I am using SetDialogBkColor() method), but the menu (I have a menu in the dialog too) continue with the default system background color. So, I only want to change the menu background color (same color of my dialog background). Could anybody help me? Thanks, Cris.

    M H 2 Replies Last reply
    0
    • C Cris

      Hello, I have to find how change the menu background color (menubar and menuitems), but nothing yet. On true, I want to change my dialog based app background color (I am using SetDialogBkColor() method), but the menu (I have a menu in the dialog too) continue with the default system background color. So, I only want to change the menu background color (same color of my dialog background). Could anybody help me? Thanks, Cris.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Cris wrote:

      SetDialogBkColor

      ... is obsolete.  Handling WM_CTLCOLOR is a better choice into the future. For the menus, maybe take a look at deriving a class from CMenu and making the menu owner drawn. See here[^] for lots of examples. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • C Cris

        Hello, I have to find how change the menu background color (menubar and menuitems), but nothing yet. On true, I want to change my dialog based app background color (I am using SetDialogBkColor() method), but the menu (I have a menu in the dialog too) continue with the default system background color. So, I only want to change the menu background color (same color of my dialog background). Could anybody help me? Thanks, Cris.

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See Owner Drawn Menu With Free Color '& Font[^]


        WhiteSky


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups