How to change the color of Buttons and edit controls

This is a discussion on How to change the color of Buttons and edit controls within the Windows Programming forums, part of the Platform Specific Boards category; I want to know the procedure for changing the color and font for the Buttons and edit controls in windows ...

  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.

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  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, 04: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21