Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » CExtGridBaseWnd, How to change border color for internal cells Collapse All
Subject Author Date
Andrew Banks Feb 24, 2007 - 5:59 PM

How to change border color for internal cells

Technical Support Feb 25, 2007 - 11:14 AM

By default, the border is drawn with the COLOR_3DFACE color. You can draw any custom border in this way:

1) Remove the _EGBS_GRIDLINES_H| __EGBS_GRIDLINES_V using CExtGridWnd::SiwModifyStyle();

2) Override the CExtGridCell::OnPaintForeground() method, in which call the parent class’s method and then draw a custom border.


Andrew Banks Feb 25, 2007 - 7:04 PM

Maybe a CExtGridCell::g_color_grid_lines variable for this.

I know you know the above is extremely round about, but thanks.

Clients claim they can’t see the lines.

Technical Support Feb 26, 2007 - 11:46 AM

To make things handier, we have just added a new OnGbwQueryGridLinesColor() virtual method to the CExtGridBaseWnd class. So you can now change the grid line color simply by overriding it. Please contact us via email if you need the update right away.