I thought this would change the edit box display but I must have to do something else to achieve it. Could someone please guide me?
Under the dlgproc case WM_COMMAND message processing:-
case WM_CTLCOLOREDIT:
if ((HIWORD(wParam)) == EN_SETFOCUS)
{ hdc = (HDC)wParam;
SetTextColor(hdc, RGB(255,255,255));
SetBkColor(hdc, RGB(0,0,0));
return (LONG) GetStockObject (WHITE_BRUSH);
}
else
{ hdc = (HDC)wParam;
SetTextColor(hdc, RGB(255,0,0)); // red
SetBkColor(hdc, RGB(255,255,0)); // yellow
return (LONG) GetStockObject (WHITE_BRUSH);
}
break;