|
-
Jul 6th, 2001, 07:42 AM
#1
Change the Background Color of a control
How is it done???
The control is derived from CComboBox if that helps...
-
Jul 6th, 2001, 09:45 PM
#2
Guru
Ugh, I hate MFC but I'll answer anyway 
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|