case WM_CTLCOLORSTATIC:
{ SetTextColor(GetDC(GetDlgItem(hdlg1,ID_STATIC2)),RGB(0,255,0));
// SetTextColor((HDC)wParam,RGB(255,0,0));
SetBkMode((HDC)wParam,TRANSPARENT);
return (BOOL)((HBRUSH)GetStockObject(NULL_BRUSH));
}
这段代码为什么不能修改指定ID控件的文本颜色?而用了下面注释的部分之后全部都修改掉啦!