|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
This message maps the index of an item to a unique identifier (ID).
To send this message, call the SendMessagefunction.
lResult = SendMessage( (HWND) hWndControl, (UINT) LVM_MAPINDEXTOID, (WPARAM) wParam, // = (WPARAM) (UINT) index; (LPARAM) lParam // = 0; not used, must be zero );
UINT that contains the index of an item.
Must be zero.
Returns a unique ID.
List-view controls internally track items by index. This can present problems because indexes can change during the control's lifetime.
The list-view control can tag an item with an ID when the item is created. You can use this ID to guarantee uniqueness during the lifetime of the list-view control.
|In a multithreaded environment, the index is only guaranteed on the thread that hosts the list-view control, not on background threads.|
|Windows Embedded CE||Windows CE 5.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|