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 » CExtGridCellComboBox colors Collapse All
Subject Author Date
Eric guez Mar 30, 2010 - 4:51 AM


I changed CExtGridWnd colors by overloading OnSiwGetSysColor.
Now, I want to change a CExtGridCellComboBox colors, how can I do that ?


Technical Support Mar 30, 2010 - 5:54 AM

Most of the grid cells are based on the CExtGridCellEx grid cell class, including the CExtGridCellComboBox class. All the CExtGridCellEx-based grid cells support both the text and background color customization. Please use the CExtGridCell::TextColorSet() and CExtGridCell::BackColorSet() methods for colorizing grid cells.

Eric guez Mar 30, 2010 - 6:30 AM

It changes the "in grin" color, but not the drop-down list colors.
The dropdown list have the grid custom colors (set by OnSiwGetSysColor), and I want to change them.

Technical Support Mar 30, 2010 - 7:30 AM

You should use the custom drown popup list box items. You can override the CExtGridCell::OnPopupListBoxItemDraw() virtual method in your grid cell class or the CExtGridWnd::OnGridCellPopupListBoxItemDraw() virtual method in your grid control class.

Eric guez Mar 31, 2010 - 2:49 AM

CExtGridWnd::OnGridCellPopupListBoxItemDraw() worked great !

See you soon (I have many more questions :) )