Individual color of a text field
Hello
I have some dificulties to change the color of only one text field in my dialog box. I used first :
case WM_CTLCOLORSTATIC:
HBRUSH hBrush;
hBrush = CreateSolidBrush(RGB(0, 0, 0));
SetBkColor((HDC)wParam, RGB(0, 0, 0));
SetTextColor((HDC)wParam, RGB(255, 0, 0));
return (DWORD)hBrush;
But this change the color of ALL the text fields.
The text field I want to change is called HAUTEUR. How can I ask to the program to change only the color of HAUTEUR ?
All the best
Pierre