
how do i change the colour of the text in a combo box
Neil!
You will want to check the WM_CTLCOLOR message, and also, from the online
help:
OnCtlColor will not be called for the list box of a drop-down combo box
because the drop-down list box is actually a child of the combo box and not
a child of the window. To change the color of the drop-down list box, create
a CComboBox with an override of OnCtlColor that checks for CTLCOLOR_LISTBOX
in the nCtlColor parameter. In this handler, the SetBkColor member function
must be used to set the background color for the text.
Johan Rosengren
Responsable Informatique
PACTA S.A.
Neil Devlin a crit dans le message ...
Quote:
>hi,
> how do i change the colour of the text in a combo box?
>--
>Neil Devlin