Thread: How to change the color of Buttons and edit controls

  1. #1
    Registered User jayapalchandran's Avatar
    Join Date
    Aug 2006
    Location
    Chennai, Tamil Nadu, India
    Posts
    2

    How to change the color of Buttons and edit controls

    I want to know the procedure for changing the color and font for the Buttons and edit controls in windows programming. the default font is big. i am using dev-c++ 4.9 compiler...

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Messages:

    WM_CTLCOLORBTN
    WM_CTLCOLOREDIT
    Last edited by Tonto; 08-26-2006 at 10:48 AM.

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Unfortunately, the WM_CTLCOLORBTN doesn't work for push buttons but the WM_CTLCOLORSTATIC can be used for checkboxes.

    Search the board as this question has been asked and discussed many times in the past.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  2. Edit Boxes and Command buttons
    By MetallicA in forum Windows Programming
    Replies: 6
    Last Post: 06-15-2005, 09:26 PM
  3. Buttons + Edit Control
    By jay kay in forum Windows Programming
    Replies: 6
    Last Post: 03-09-2005, 05:36 PM
  4. edit controls
    By ZeroG in forum Windows Programming
    Replies: 0
    Last Post: 08-02-2004, 11:54 PM
  5. Dialog Edit Control and Enter Key
    By Quantrizi in forum Windows Programming
    Replies: 2
    Last Post: 04-14-2004, 07:59 AM