MFC CComboBoxEx select text only

196 Views Asked by At

I am using the CComboBoxEx control in MFC to select color for future drawing. Items in my ComboBox have small pictures – examples of color, and color names. Everything is Ok, except one annoying thing – when I select some item, not only text in selected item has different background, but the picture itself is changed. How to change only background color of text?

Example of selected item in picture

ComboBox lost focus - item displays normally

0

There are 0 best solutions below