Thread: checkbox background

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    7

    checkbox background

    How do I make a checkbox bacground match it's parent window background?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The most versatile way would probably be by making your control owner-drawn and handling the WM_DRAWITEM message but you would have to draw the entire control in any of its various states.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    76
    But fortunately, it doesn't take much to draw a checkbox well: just call DrawFrameControl.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. setting checks on checkbox , setcheck not working
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2007, 09:38 PM
  2. Windows background color
    By Exile in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2005, 07:55 AM
  3. Detect Close of a background process
    By Schwarzhelm in forum C Programming
    Replies: 1
    Last Post: 11-05-2003, 01:46 AM
  4. Background Colour in Windows API
    By Vicked in forum Windows Programming
    Replies: 2
    Last Post: 04-14-2003, 03:49 AM
  5. simple background color question.
    By ... in forum C++ Programming
    Replies: 9
    Last Post: 10-29-2002, 05:12 PM