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

using IDs

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


Joined: 05 January 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote hlaurent Quote  Post ReplyReply Direct Link To This Post Topic: using IDs
    Posted: 05 January 2006 at 7:07am

Hi,

I coded something like that :

CXTPPropertyGrid m_wndPropertyGrid;

/* ... */

CString cs;
cs.Format("TopItem");
CXTPPropertyGridItem* pTop = m_wndPropertyGrid.AddCategory(cs);
pTop->SetID(1);
cs.Format("A Child");
CXTPPropertyGridItem* pChild = pTop->AddChildItem(new CXTPPropertyGridItem(cs));
pChild->SetID(2);

 

But when I try to expand "A Child", the Application crashes. I have to code :

pTop->SetID(0);

... and then it works.

 

Is there something particular to know if using IDs when adding an object as category ?

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.