i have WM_CTLCOLORLISTBOX and WM_CTLCOLOREDIT
Code:
HBRUSH lbColor = CreateSolidBrush(RGB(0,0,0));
HBRUSH editColor = CreateSolidBrush(RGB(0,0,0));
Code:
case WM_CTLCOLORLISTBOX:
SetBkColor((HDC)wParam, RGB(0,0,0));
SetTextColor((HDC)wParam, RGB(255,255,255));
return ((LRESULT)lbColor);
case WM_CTLCOLOREDIT:
SetBkColor((HDC)wParam, RGB(0,0,0));
SetTextColor((HDC)wParam , RGB(255,255,255));
return ((LRESULT)editColor);
the problem is when i resize the window, after doing this a few times it paints the controls back to there standard color(white back black font)
does any one know a solution to this, thanks