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 General Discussion » CExtGridBaseWnd, header cell borders Collapse All
Subject Author Date
a a Apr 6, 2006 - 2:55 AM

Is it possible to make the header cells flat? (without 3D borders)

Thanks.

Technical Support Apr 6, 2006 - 11:49 AM

Here are 3D borders you can see in the Windows header control (the Windows XP themes should not be active):

Here are the grid headers with the flat style:

If you mean a flatter style, would you send us a screenshot that shows what you want?

a a Apr 6, 2006 - 8:28 PM

I guess it’s because I was comparing with a CListCtrl (with LVS_NOSORTHEADER).
This style makes the header flat, just like the grid headers with the flat style.
The only difference is that there’s no border at the extern part of the control (top of the top header).

It is no big deal.
Thanks anyway.

Technical Support Apr 7, 2006 - 10:44 AM

Unfortunately such a style is not supported in Prof-UIS. But you can create and use a CExtGridCellHeader-derived class. Just override the OnPaintBackground() virtual method which paints the entire background of the cell. The default implementation paints a 3D background for the outer cells but you can override this behavior.