How is it done???
The control is derived from CComboBox if that helps...
Printable View
How is it done???
The control is derived from CComboBox if that helps...
Ugh, I hate MFC but I'll answer anyway :rolleyes:
If the combo-box contains an Edit control in it... Override the OnCtlColor function of the control derived from CComboBox. Check when the nCtlColor parameter is equal to CTLCOLOR_EDIT. Then, use pDC->SetBkColor and also return a handle to a brush which has the color that you want to use.