下面是我做STATIC的方法?
HBRUSH CWytxDlg::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_STATIC)
{
pDC->SetBkMode( TRANSPARENT );
pDC->SetTextColor(RGB(200,255,50));
return (HBRUSH)GetStockObject( NULL_BRUSH );
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
谢谢~!!!!!!在线等待............
HBRUSH CWytxDlg::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_STATIC)
{
pDC->SetBkMode( TRANSPARENT );
pDC->SetTextColor(RGB(200,255,50));
return (HBRUSH)GetStockObject( NULL_BRUSH );
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
谢谢~!!!!!!在线等待............
设置成自化类,自己写一个CButton,自己构造!