别人的(yu_hl(卖柴火的小男孩) ):很好用
HBRUSH CMyComboBox::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CComboBox::OnCtlColor(pDC, pWnd, nCtlColor); // TODO:  Change any attributes of the DC here
TCHAR clsname[MAX_PATH];
GetClassName(pWnd->m_hWnd, clsname, MAX_PATH); CString strClsName;
strClsName = clsname;
if(strClsName.CompareNoCase("ComboLBox") == 0)
{
CRect rc, rcThis;
pWnd->GetWindowRect(rc);
GetWindowRect(rcThis);
rc.OffsetRect(0, -10);
pWnd->MoveWindow(rc.left, rcThis.top - rc.Height(), rc.Width(), rc.Height(), TRUE);
} // TODO:  Return a different brush if the default is not desired
return hbr;
}