HBRUSH CPicturedButtonDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(pWnd->GetDlgCtrlID() == IDC_STATIC)
{
pDC->SetTextColor(RGB(255,255,0)); //黄
// pDC->SetBkMode(TRANSPARENT); //透明
pDC->SetBkColor(RGB(0,0,0)); //黑
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
Original issue reported on code.google.com by Giggs...@gmail.com on 23 Feb 2012 at 6:56
Original issue reported on code.google.com by
Giggs...@gmail.com
on 23 Feb 2012 at 6:56