I'm trying to create a static control into a program.
It usually works fine for me, but now I have a window which is completely white, and when I create the static controll, the text has a grey background...
You can change static control background to match while processing WM_CTLCOLORSTATIC message in the parent:
1 2 3 4 5 6 7 8 9 10 11
// Set the colour of the text for our URL
if ((HWND)lParam == GetDlgItem(hDlg, IDC_WARNING))
// we're about to draw the static
// set the text colour in (HDC)lParam
return (BOOL)CreateSolidBrush (GetSysColor(COLOR_MENU));