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 |
|
Loïc Hamon
|
Jun 15, 2011 - 10:00 AM
|
Hello, I have a custom CExtPropertyGridCtrl with my own custom colors for category / property / value cells and even for the expand button. The only thing left to customize would be the color of the vertical bar containing the expand buttons for the categories, and of the background of the window on which the cells are placed (both of them are white/very light gray by default). How can I do this? (all my attempts of getting the draw context of the grid window and using FillSolidRect() have just ended up with a solid color painted over the cells so they are no longer visible!) Thanks in advance, p1nkzz
|
|
Technical Support
|
Jun 15, 2011 - 11:28 AM
|
Please take a look at the CMainDlg::OnCheckTransparentVbLike() method in the CompoundProperties sample application. It makes transparent areas which you want to re-color. You can do the same but create some GDI brushes of the required color.
|
|
Loïc Hamon
|
Jun 16, 2011 - 8:19 AM
|
That’s exactly what I needed. Thanks.
|
|