Help me |
Post Reply |
Author | |
yyh7011cn
Groupie Joined: 10 September 2006 Location: China Status: Offline Points: 17 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
do you check wParam in OnGridNotify ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
yyh7011cn
Groupie Joined: 10 September 2006 Location: China Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Thanks,I don't check wParam,It's well done.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |