CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Location
    germany
    Posts
    772

    Check Box, Radio Buttons

    Does anyone know how to change the background color of a CheckBox and of a Radio Box from white to another color?

    Please rate if it helps!

    * The second mouse gets the cheese.

    * Birthdays are good for you. The more you have, the longer you live.

    * Always keep your words soft and sweet, just in case you have to eat them.

    * Always read stuff that will make you look good if you die in the middle of it.

  2. #2
    Join Date
    Jul 1999
    Location
    Israel
    Posts
    1,793

    Re: Check Box, Radio Buttons

    Override WM_CTLCOLOR.

    you can change everything there..

    Beside that.. if you need something more complicaed..
    Derive your own class from CButton, and handle the drawing your self.

    Good luck kishk

    kishk91@hotmail.com
    ICQ: 13610258

  3. #3
    Join Date
    Aug 1999
    Location
    Romania, Bucharest
    Posts
    253

    Re: Check Box, Radio Buttons

    if you need to change the background color of the lithe circle or litle square WM_CTLCOLOR is useless
    for that change must derive CButton


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured