jackba / wy-internal-system

Automatically exported from code.google.com/p/wy-internal-system
0 stars 0 forks source link

MFC CStatic #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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