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. coloring a button

coloring a button

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
7 Posts 6 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.
  • R Offline
    R Offline
    ratprita
    wrote on last edited by
    #1

    Anyone know how to color the background , Text and the border of the an owner drawn CButton ?

    T I N N 4 Replies Last reply
    0
    • R ratprita

      Anyone know how to color the background , Text and the border of the an owner drawn CButton ?

      T Offline
      T Offline
      theCPkid
      wrote on last edited by
      #2

      [this]shows how to set text color. inside the same function, you can draw a background color and border.

      1 Reply Last reply
      0
      • R ratprita

        Anyone know how to color the background , Text and the border of the an owner drawn CButton ?

        I Offline
        I Offline
        Iain Wiseman
        wrote on last edited by
        #3

        http://www.codeguru.com/forum/archive/index.php/t-225925.html[^] might help

        1 Reply Last reply
        0
        • R ratprita

          Anyone know how to color the background , Text and the border of the an owner drawn CButton ?

          N Offline
          N Offline
          Naveen
          wrote on last edited by
          #4

          There is no simple set functions to change the color of a button. You have to owner draw it. She the Owner Draw Button Step-by-Step [^] article.

          nave [OpenedFileFinder] [My Blog]

          modified on Wednesday, October 21, 2009 8:04 AM

          L 1 Reply Last reply
          0
          • R ratprita

            Anyone know how to color the background , Text and the border of the an owner drawn CButton ?

            N Offline
            N Offline
            Nishad S
            wrote on last edited by
            #5

            Have a look at this[^]

            - ns ami -

            1 Reply Last reply
            0
            • N Naveen

              There is no simple set functions to change the color of a button. You have to owner draw it. She the Owner Draw Button Step-by-Step [^] article.

              nave [OpenedFileFinder] [My Blog]

              modified on Wednesday, October 21, 2009 8:04 AM

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              No. You can use Shell buttons

              N 1 Reply Last reply
              0
              • L Lost User

                No. You can use Shell buttons

                N Offline
                N Offline
                Naveen
                wrote on last edited by
                #7

                What do you mean?

                nave [OpenedFileFinder] [My Blog]

                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