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. modify color of a button

modify color of a button

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 4 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.
  • A Offline
    A Offline
    akshita_15
    wrote on last edited by
    #1

    hi, How can we modify the background color of a button Thank You

    N H A 3 Replies Last reply
    0
    • A akshita_15

      hi, How can we modify the background color of a button Thank You

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      akshita_15 wrote:

      hi, How can we modify the background color of a button

      Search MSDN for BS_OWNERDRAW.


      Nibu thomas A Developer Programming tips[^]  My site[^]

      1 Reply Last reply
      0
      • A akshita_15

        hi, How can we modify the background color of a button Thank You

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

        you can derived cbutton and use WM_DRAWITEM of cousre you should change property from button in property window Owner draw to true_**


        **_

        whitesky


        1 Reply Last reply
        0
        • A akshita_15

          hi, How can we modify the background color of a button Thank You

          A Offline
          A Offline
          anwer_skk
          wrote on last edited by
          #4

          Here is an example http://www.codeproject.com/miscctrl/subclassdemo.asp[^]

          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