When I change the color of a static control for a hyperlink or something like that, I always do it like this:
Code:
HWND hControl = HWND(lParam);//handle to the control
/*-------------------------------------------------*/
case WM_CTLCOLORSTATIC: // Draw the hyperlink in blue
switch (GetDlgCtrlID(hControl))
{
case IDC_HYPERLINK:
SetBkMode((HDC)wParam, TRANSPARENT);
SetTextColor((HDC)wParam, RGB(255, 0,0 ));
return (LRESULT)GetStockObject(HOLLOW_BRUSH);
}
break;
I think the problem is that he doesn't know wich static control to change the color of