DWORD_PTR CBCGPTreeCtrl::GetSafeItemData | ( | HTREEITEM | hItem | ) | const |
Retrieves the application-specific value associated with the item specified by nItem.
This method is very similar to CTreeCtrl::GetItemData, but if the specified index is incorrect, the method returns 0 instead of the thowing exception.
hItem | The item whose data is to be retrieved. |