Print Page | Close Window

Help me

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=5493
Printed Date: 16 May 2024 at 11:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Help me
Posted By: yyh7011cn
Subject: Help me
Date Posted: 11 November 2006 at 8:43am
I Create propertyGrid as follows
UINT nID[100];
for(int i=0;i<100;i++)
    nID = i;
 CXTPPropertyGridItem* pCategory = m_wndGrid.AddCategory(_T("Something"));
for(i=0;i<100;i++)
{
         CCustomItemFileBox* pBox = (CCustomItemFileBox*) pPath->AddChildItem(new CCustomItemFileBox(nID);
    pBox->SetCaption(Other]);
}
 
In OnGridNotify I write as follows:
      CXTPPropertyGridItem* pItem = (CXTPPropertyGridItem*)lParam;
      UINT nID = pItem->GetID();
      if( nID >=0 && nID <100)
            dosomething
     But when my program exit,I get dbgheap.c assert error,in line 1017,
     if I remove if(nID >=0 && nID <100) dosomething,it's correct.tell me why,How can I do?thanks.



Replies:
Posted By: Oleg
Date Posted: 12 November 2006 at 3:38am
Hi, 
do you check wParam in OnGridNotify  ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: yyh7011cn
Date Posted: 12 November 2006 at 7:22am
Thanks,I don't check wParam,It's well done. 



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