Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyGridPaintManager background color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridPaintManager background color

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridPaintManager background color
    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.



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2008 at 1:34am
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
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2008 at 8:39am
Thanks, Oleg!

I will do that.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.