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