i have WM_CTLCOLORLISTBOX and WM_CTLCOLOREDIT
Code:HBRUSH lbColor = CreateSolidBrush(RGB(0,0,0)); HBRUSH editColor = CreateSolidBrush(RGB(0,0,0));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)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);
does any one know a solution to this, thanks



LinkBack URL
About LinkBacks


