CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    76

    Back Color of a Control

    How would I set the back color of a control of a form? I know it's basic, but I don't know.

  2. #2
    Join Date
    Jun 2005
    Posts
    1,255

    Re: Back Color of a Control

    Its basics is that this is the choice of the user when s/he sets the colors in windows control panel.
    Do you want to change the color for every button in every application at once by changing the user's settings, or do you want to have just one application with strange buttons?

  3. #3
    Join Date
    Dec 2007
    Posts
    76

    Re: Back Color of a Control

    Well, no, but in my app, the colors of my controls are off, so, like I have a static with a grey bac, and the form is white, and a button is white. etc.

  4. #4
    Join Date
    Jun 2007
    Posts
    44

    Re: Back Color of a Control

    To change the background color of child controls displaying text, pick up the WM_CTLCOLORSTATIC message. There's some implementation code around the forums here somewhere, and more info on the related messages for other control aspects on MSDN.

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