Setting different background

This is a discussion on Setting different background within the Windows Programming forums, part of the Platform Specific Boards category; Im new to windows programming and im trying to change the background color of a edit box doeing: Code: case ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    57

    Setting different background

    Im new to windows programming and im trying to change the background color of a edit box doeing:
    Code:
    		case WM_CTLCOLOREDIT:
    	HDC hdc;
    	hdc = GetDC (controls[0]) ;
    	SetBKColor(hdc,RGB(30,50,80));
    	ReleaseDC (controls[0], hdc) ;
    		break;
    But it doesnt work. What i must do?

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

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

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Setting desktop background color
    By Brian in forum Windows Programming
    Replies: 10
    Last Post: 08-21-2009, 11:34 AM
  2. setting the background of a child window
    By Anddos in forum Windows Programming
    Replies: 7
    Last Post: 03-25-2006, 07:49 AM
  3. Tab Control - Setting The Background colour
    By ventolin in forum Windows Programming
    Replies: 1
    Last Post: 01-27-2005, 04:13 PM
  4. Detect Close of a background process
    By Schwarzhelm in forum C Programming
    Replies: 1
    Last Post: 11-05-2003, 12:46 AM
  5. Setting the background color of my main window
    By Garfield in forum Windows Programming
    Replies: 5
    Last Post: 07-06-2002, 11:25 PM

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