Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Can I hide propertygriditems?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can I hide propertygriditems?

 Post Reply Post Reply
Author
Message
andrewg View Drop Down
Groupie
Groupie


Joined: 24 September 2007
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrewg Quote  Post ReplyReply Direct Link To This Post Topic: Can I hide propertygriditems?
    Posted: 07 August 2008 at 10:38am
I don't want to remove a propertygriditem completely but would just like to make it invisible. Has anyone ever done this or know how to?
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2008 at 11:10am
CXTPPropertyGridItem::SetHidden(TRUE)

Actually the property grid items have two members which seem to be the same:

BOOL  m_bVisible;         // Visibility of the item.
BOOL  m_bHidden;        // TRUE if item is hidden


@Oleg: Can we get rid of the m_bHidden and instead add a SetVisible() method? That would make it more consistent with other classes.

Codejock support
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: 08 August 2008 at 6:40am

They are not really same - m_bVisible will be FALSE if user collapse parent node.  m_bHidden developer-defined visibility.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.125 seconds.