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 |
|
exp lnt
|
Aug 5, 2008 - 6:28 AM
|
Hello guy, I have highlight problem on data grid. When i selected a row on the grid, it will be painted blue color. But when changing focus to another window, the row will be painted high grey color. How to keep blue color or another color ? Thank you so much, Explnt,
|
|
Technical Support
|
Aug 11, 2008 - 4:50 AM
|
The back color of a focused cell when the grid has no focus would be taken from the same color set for a normal cell. Currently the user cannot set this color for the cell when calling BackColorSet() . So you need to override the CExtGridCell::OnQueryBackColor() virtual method.
Just add the __EGCPF_FOCUSED_CONTROL style to the dwHelperPaintFlags parameter and invoke the base class.
|
|