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);
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