Thread: Button and edit control border

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Button and edit control border

    I would like to change the border of my button and edit controls. With buttons I can use BS_FLAT, but it still has one white and one black border. I would like it to have 1px black border. And I would like to know how to do it with edit controls, too.

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    I thought it wouldn't be a good idea to post a new thread, so I had one more question about buttons. How can I change the color of the button? WM_CTLCOLORBTN doesn't work with BS_PUSHBUTTON. I am using Dev-C++.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Well, making an edit box with a simple 1px border is easy, but still I haven't found a way to change the border of a button.

  4. #4
    Information Crocodile
    Join Date
    Dec 2004
    Posts
    204
    Use CreateWindowEx and WS_EX_CLIENTEDGE as its first parameter.

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Well I want to make a single pixel border, WS_EX_CLIENTEDGE doesn't really do that...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Struggling to read text from Edit Control (box)
    By csonx_p in forum Windows Programming
    Replies: 6
    Last Post: 05-13-2008, 04:55 AM
  2. can't disable ctrl-V on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-06-2008, 08:37 AM
  3. Buttons + Edit Control
    By jay kay in forum Windows Programming
    Replies: 6
    Last Post: 03-09-2005, 05:36 PM
  4. Updating a list control
    By MPSoutine in forum Windows Programming
    Replies: 2
    Last Post: 12-05-2003, 02:03 AM
  5. Get Notified of ENTER in single line EDIT control
    By Morpheus in forum Windows Programming
    Replies: 1
    Last Post: 06-29-2002, 07:07 PM