juz detect the WM_CTLCOLORSTATIC message inside the WndProc will do...
PHP Code:
case WM_CTLCOLORSTATIC:
// Change the static control background color
// Ref.
// wParam - handle to static control DC (HDC)
// lParam - handle to static control handle (HWND)
if ((HWND)lParam == hWndEdit1)
{
// Change text color
SetTextColor((HDC)wParam, RGB(255, 0, 255));
// Change background color
SetBkMode((HDC)wParam, TRANSPARENT);
return (long)hBrush2;
}
break;