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 |
|
Offer Har
|
Mar 9, 2009 - 2:36 PM
|
Dear Support, Our cells’ text have colors assigned to them, and on the blue back-ground it is not so visible. We only use a one cell or one row focus, so we would to have only the dotted lines around the focused cell/row to be rendered. Can this be done? Thanks, Ron.
|
|
Technical Support
|
Mar 10, 2009 - 5:44 AM
|
Please override the CExtGridBaseWnd::SelectionGetForCellPainting() virtual method. It’s invoked when grid cells need to know whether they should use a selection highlighted background.
You can also override the CExtGridWnd::OnGbwPaintCell() and invoke the parent class method with the modified dwHelperPaintFlags parameter which should have removed __EGCPF_HIGHLIGHTED_BY_FOCUSED_COLUMN | __EGCPF_HIGHLIGHTED_BY_FOCUSED_ROW flags. This will remove the focus rectangle painting. After the parent class method invocation you can manually paint focus rectangle where you need it.
|
|