HBRUSH C3dEdit::CtlColor(CDC* pDC, UINT nCtlColor)
{
// TODO: Change any attributes of the DC here
pDC->SetBkColor(RGB(200,220,250));
pDC->SetTextColor(RGB(0,0,255));
// TODO: Return a non-NULL brush if the parent's handler should not be called
return (HBRUSH)GetStockObject(NULL_BRUSH);
}
这是我的自绘edit,你可以试一下,不过只是一种颜色。