Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Controlling the m_bVisible flag?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Controlling the m_bVisible flag?

 Post Reply Post Reply
Author
Message
jgolab View Drop Down
Newbie
Newbie
Avatar

Joined: 09 July 2004
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jgolab Quote  Post ReplyReply Direct Link To This Post Topic: Controlling the m_bVisible flag?
    Posted: 20 July 2004 at 9:43am
Is there a way to set the m_bVisible flag? I want to dynamically hide grid items depending on previous user selections? Is there a way to do this?
James
Back to Top
rvoith View Drop Down
Groupie
Groupie
Avatar

Joined: 03 July 2003
Location: Norway
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote rvoith Quote  Post ReplyReply Direct Link To This Post Posted: 13 January 2005 at 3:29am

I am wondering about this too. I tried to create a derived CXTPPropertyGridItem where I exposed the SetVisible method, like this;

class CCustomItemHideable : public CXTPPropertyGridItem
{
public:
    CCustomItemHideable(UINT uiRes) : CXTPPropertyGridItem(uiRes) {
    };

    virtual void SetVisible(BOOL bVisible)
    {
        m_bVisible = bVisible;
    };

protected:

private:
};

However, the items were never hidden, and I received an assert when I selected the "to be invisible"-item

Best regards,
Bob
Proud Programmer!
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.113 seconds.