Forum
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.
Subject |
Author |
Date |
|
Bart Kampers
|
Feb 13, 2009 - 4:42 AM
|
Hello,
I noticed that when a CExtTreeGrid loses focus the selected cell is not highlighted anymore. I keep the cell to highlighted by following code.
I have to do this for every cell when it is inserted. I was wondering if there is an easier way.
cell->TextColorSet(CExtGridCell::__ECS_NORMAL, COLOR_PARAMETER);
// Ensure cell stays highlighted when grid loses focus
cell->TextColorSet(CExtGridCell::__ECS_SELECTED, ::GetSysColor(COLOR_HIGHLIGHTTEXT));
cell->BackColorSet(CExtGridCell::__ECS_SELECTED, ::GetSysColor(COLOR_HIGHLIGHT));
Kind regards.
|
|
Technical Support
|
Feb 16, 2009 - 12:12 PM
|
We suspect you should invoke the pWndGrid->SiwModifyStyle( __EGBS_NO_HIDE_SELECTION, 0, false ); code.
|
|