Thread: Setting different background

  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

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, 08:49 AM
  3. Tab Control - Setting The Background colour
    By ventolin in forum Windows Programming
    Replies: 1
    Last Post: 01-27-2005, 05:13 PM
  4. Detect Close of a background process
    By Schwarzhelm in forum C Programming
    Replies: 1
    Last Post: 11-05-2003, 01: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