I've changed the color of an editbox control, but there is just one little problem:
If the editbox gets a focus when it's empty, the background changes back to the default color.
Here is the code:Why does it happen, and how can I fix it?Code:
HBRUSH hBrush = CreateSolidBrush(RGB(0, 0, 0));
SetBkColor((HDC)wParam, RGB(0, 0, 0));