Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - ReadOnly State Text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReadOnly State Text

 Post Reply Post Reply
Author
Message
fxrz View Drop Down
Newbie
Newbie


Joined: 11 July 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote fxrz Quote  Post ReplyReply Direct Link To This Post Topic: ReadOnly State Text
    Posted: 11 July 2005 at 8:05am

Hello everyone:

I have derived my own custom class from CXTPropertyGridPaintManager and overriden the DrawItem function in order to get a new aspect for the property grid.

The problem comes when I select a non category item with a TRUE read-only state. It overwrites my selected colors and uses white background and gray text.

May somebody knows how to avoid (what class or function should I overwrite?) this problem?

Thanks.

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: 11 July 2005 at 3:05pm

in 9.70 was added

virtual COLORREF GetItemTextColor(CXTPPropertyGridItem* pItem, BOOL bValuePart);

virtual COLORREF GetItemBackColor(CXTPPropertyGridItem* pItem, BOOL bValuePart);

that you can overwrite.

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fxrz View Drop Down
Newbie
Newbie


Joined: 11 July 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote fxrz Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2005 at 2:01am

It works nicely. Just I need.

Thank you, Oleg.

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.172 seconds.