标签:color ar sp on log amp bs as type
HBRUSH dlg::CtlColor(CDC* pDC, UINT nCtlColor, Cwnd* pWnd)
{
HBRUSH hbr = CDialogEx::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: 在此更改 DC 的任何属性
// TODO: 如果不应调用父级的处理程序,则返回非 null 画笔
if (CTLCOLOR_STATIC == nCtlColor)
{
if(GetDlgItem(IDC) == pWnd)
{
}
pDC->SelectObject(&m_font);
pDC->SetTextColor(m_crText);
pDC->SetBkColor(m_crBackColor);
pDC->SetBkMode(TRANSPARENT);
return crBackColor;
}
return hbr;
}
标签:color ar sp on log amp bs as type
原文地址:http://www.cnblogs.com/thbCode/p/4013259.html