I tried to change the static control text color with this code, but this only changes the color of the background:
Code:SetTextColor(hdc,RGB(255,255,255));
I tried to change the static control text color with this code, but this only changes the color of the background:
Code:SetTextColor(hdc,RGB(255,255,255));
Handle the WM_CTLCOLORSTATIC message, and return a handle to a brush that is the color you want.
I tried that too, before SetTextColor:
The static box is colored but the background of the text is still white...Code:case WM_CTLCOLORSTATIC: return (LRESULT)CreateSolidBrush(RGB(0, 74, 239));
Well, the problem with text background is solved. I used:
in my WM_CTLCOLORSTATIC, but wParam was the real HDC, so it works like this:Code:SetBkColor((HDC)lParam,RGB(0, 74, 239));
But actually my first question was, how can I change the color of the TEXT not the background of the text.Code:SetBkColor((HDC)wParam,RGB(0, 74, 239));
It works, but it changes the color of the text's background not the color of the text.