15,980
社区成员
发帖
与我相关
我的任务
分享
if (pWnd->GetDlgCtrlID() == IDC_SPECTRAL_INVERSION_CHECK||pWnd->GetDlgCtrlID() == IDC_MJH_CHECK) {
pDC->SetTextColor(RGB(255,255,0));
pDC->SetBkMode(TRANSPARENT);
//pDC->SetBkColor(LTGRAY_BRUSH);
//pDC->TextOut(100,100,"AAAA");//同样不起作用。。。
return (HBRUSH)::GetStockObject(LTGRAY_BRUSH);//设置填充色
}
HBRUSH CXXDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(IDC_CHECK1 == pWnd->GetDlgCtrlID())
{
pDC->SetTextColor(RGB(255, 0, 128));
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
HBRUSH CXXDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(IDC_RADIO1 == pWnd->GetDlgCtrlID())
{
pDC->SetTextColor(RGB(255, 0, 128));
}
// TODO: Return a different brush if the default is not desired
return hbr;
}