按钮颜色怎么没变呢?
在OnCtlColor中的修改为:
HBRUSH CVirusDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
//HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(nCtlColor==CTLCOLOR_BTN)
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(0,0,250));
pDC->SetBkColor(RGB(0,0,250));
}
// TODO: Return a different brush if the default is not desired
return m_brush;
}
按钮颜色怎么没变啊?