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 to get back color of a dialog?

How to get back color of a dialog?

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
6 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.
  • F Offline
    F Offline
    freehawk
    wrote on last edited by
    #1

    Hello everyone: How to get back color of a dialog? Please help me. Thank you. -Freehawk

    F D 2 Replies Last reply
    0
    • F freehawk

      Hello everyone: How to get back color of a dialog? Please help me. Thank you. -Freehawk

      F Offline
      F Offline
      Filomela
      wrote on last edited by
      #2

      In OnInitInstance you can call SetBkDialogColour(i am not sure if the syntax is right) maybe there is a function also for getting the background color.

      1 Reply Last reply
      0
      • F freehawk

        Hello everyone: How to get back color of a dialog? Please help me. Thank you. -Freehawk

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Have you looked at GetSysColor()?


        "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

        F 1 Reply Last reply
        0
        • D David Crow

          Have you looked at GetSysColor()?


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          F Offline
          F Offline
          freehawk
          wrote on last edited by
          #4

          Thank you for the reply. I called GetSysColor(); It run good. -Freehawk

          D 1 Reply Last reply
          0
          • F freehawk

            Thank you for the reply. I called GetSysColor(); It run good. -Freehawk

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Great! What COLOR_xxx value did you end up using?


            "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

            F 1 Reply Last reply
            0
            • D David Crow

              Great! What COLOR_xxx value did you end up using?


              "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

              F Offline
              F Offline
              freehawk
              wrote on last edited by
              #6

              Hi I did as the following: GetSysColor (COLOR_3DFACE) I hope it can be useful for you. -Freehawk

              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