is there any way to change the background color on that?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);
This is a discussion on changing color of a static window within the Windows Programming forums, part of the Platform Specific Boards category; 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 ...
is there any way to change the background color on that?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);
Use WM_CTLCOLOR or WM_CTLCOLORSTATIC.
gg