Thread: changing color of a static window

  1. #1
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    changing color of a static window

    Code:
    orange = CreateWindow(_T("STATIC"),_T("     "),
    						WS_VISIBLE | BS_VCENTER | BS_OWNERDRAW | WS_CHILD,
    					    330,30,15,15,
    						topic,NULL,(HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE),NULL);
    is there any way to change the background color on that?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Use WM_CTLCOLOR or WM_CTLCOLORSTATIC.

    gg

  3. #3
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    thank you.
    ill try it now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. uploading file to http server via multipart form data
    By Dynamo in forum C++ Programming
    Replies: 1
    Last Post: 09-03-2008, 04:36 AM
  2. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  3. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  4. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  5. opengl program as win API menu item
    By SAMSAM in forum Game Programming
    Replies: 1
    Last Post: 03-03-2003, 07:48 PM