Print Page | Close Window

using IDs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=3471
Printed Date: 22 November 2024 at 4:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: using IDs
Posted By: hlaurent
Subject: using IDs
Date 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 ?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net