Anyone can tell me why this code does not work. The only thing that comes out is that the editbox becomes grey??
I am missing something??
{
PAINTSTRUCT ps;
HWND htest = GetDlgItem(hDlg, IDC_CHANNEL);
HDC hdc = GetWindowDC(htest);
hdc = BeginPaint (htest, &ps);
SetBkMode(hdc, TRANSPARENT);
SetBkColor(hdc, RGB(0, 255, 0));
EndPaint(htest, &ps);
ReleaseDC(htest, hdc);
}
thanks,
see u!
