HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

//CBrush brushStatic;
//brushStatic.CreateSolidBrush( 0x007F1409 );
UINT ID = pWnd->GetDlgCtrlID();

if( ID == IDC_STATIC_DESC )
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(0x0011097F);
//pDC->SetBkColor(0x00BA2313);
//return (HBRUSH)brushStatic;  
}
else if( ID == IDC_STATIC_COPY )
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(0x00600912);
}

return hbr;
}
Posted by 모과이IT
,