I have some prob with CTreeCtrl.SetItemData()

I do this in OnInitialUpdate of my CTreeView class

int IDPersonne;
hItemData = ctc.InsertItem("Info",NULL,NULL, hSubTreeDirection);
bool bok = ctc.SetItemData(hItemData,IDPersonne);
DWORD dw = ctc.GetItemData(hItemData);

my variable dw has the correct number.

But in my OnDblclk() function
I Do this

CTreeCtrl &ctc = GetTreeCtrl();
HTREEITEM hTreeItem = ctc.GetParentItem(ctc.GetSelectedItem());
if (hTreeItem != NULL)
{
AfxMessageBox(ctc.GetItemText(hTreeItem));
DWORD dw = ctc.GetItemData(hTreeItem);
}

and there the dw value is 0 ??

What I wrong

Christian Niquille
Thanks for your help