![]() |
CXTPPropertyGridPaintManager background color |
Post Reply ![]() |
Author | |
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() Posted: 09 December 2008 at 10:06am |
Hi,
when I call ResetContent() on an XTPPropertyGrid, the "grid view" area fill with a white background color. Even when I call SetCustomColors, and also set the metrix of the CXTPPropertyGridPaintManager instance and the color-related members of the color manager to other colors. If there is at least one element in the list (property grid) the custom colors are applied. How do I ensure that the background of the grid is the same when there is no entry in the grid? The code is very confusing, combining color members in the paint manager, a color metrics structure and even sending WM_CTLCOLORSTATIC to the parent of the grid if the member variable m_bTransparent (???) is set, or the member variable m_clrFace of the paint manager equals GetXtremeColor(COLOR_3DFACE). What do you want to achieve with this. Useless to say that neither in your code nor in your "documentation" is anything mentioned about this. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Thanks, we agree this bug.
Please make following changes in void CXTPPropertyGridView::OnPaint() replace
CWnd::DefWindowProc(WM_PAINT, (WPARAM)buffer.m_hDC, 0);
to
if (GetCount())
{ CWnd::DefWindowProc(WM_PAINT, (WPARAM)buffer.m_hDC, 0); } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
Thanks, Oleg!
I will do that. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |