[求助]高手快来解救我
HBRUSH CZilchDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); if (pWnd->GetDlgCtrlID() == IDC_MYSTATIC) { pDC->SetTextColor(RGB(255, 0, 0)); pDC->SetBkMode(TRANSPARENT); } return hbr; }
上面的代码只能改变静态字体的颜色,如果把'"IDC_MYSTATIC""这个静态字体ID改成按钮ID
是不会改变按钮字体颜色的,能否有高手给我指点一下,小生将万倍感谢!!!!!