HBRUSH CControlDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
if(pWnd==GetDlgItem(按钮的id) )
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetBkColor(RGB(128, 184, 223))
HBRUSH B=CreateSolidBrush(RGB(128, 184, 223));
return (HBRUSH)B;
.....
}
{
if(pWnd==GetDlgItem(按钮的id) )
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetBkColor(RGB(128, 184, 223))
HBRUSH B=CreateSolidBrush(RGB(128, 184, 223));
return (HBRUSH)B;
.....
}