Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtGridCellCheckListComboBox question Collapse All
Subject Author Date
Offer Har Jun 4, 2007 - 7:51 PM

Dear Support,
We would like to color each item in the drop-down list in a different color.
How can this be achieved?

Technical Support Jun 5, 2007 - 9:15 AM

You cannot do this directly but there is a workaround. You need to draw combo box items yourself. Derive your class from CExtGridCellCheckListComboBox and override the OnPopupListBoxItemDraw method which is used for drawing items. Just copy the content of this method from CExtGridCellCheckListComboBox class and make the appropriate changes in the code that draws the background.