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 |
|
Therese P
|
May 18, 2010 - 10:05 AM
|
Hi, I would like to know how to change the colors of the selection in the grid. Right now, when I click on a row to select it, the row turns blue with a white dotted line surrounding it. Is it possible to change the filling color and the white dotted line? Thank you again
|
|
Technical Support
|
May 18, 2010 - 11:53 AM
|
You can override the CExtScrollItemWnd::OnSiwDrawFocusRect() virtual method in your CExtGridWnd -derived class and draw your own style dotted focus rectangle. You can override the CExtScrollItemWnd::OnSiwGetSysColor() virtual method and return different colors for the COLOR_HIGHLIGHT and COLOR_HIGHLIGHTTEXT to change the selected text/background colors. You can override the CExtScrollItemWnd::OnSiwGetReadOnlyTextColor() and CExtScrollItemWnd::OnSiwGetReadOnlyBackgroundColor() virtual methods to change the colors of read-only elements. You can override the CExtGridBaseWnd::OnGbwQueryGridLinesColor() virtual method to change the grid lines color. The CExtGridCell::TextColorSet() and CExtGridCell::BackColorSet() methods allow you to assign various text and background colors to individual grid cells.
|
|