是不是要用: CListBox::GetItemDataPtr void* GetItemDataPtr( int nIndex ) const;Return ValueRetrieves a pointer, or –1 if an error occurs.ParametersnIndexSpecifies the zero-based index of the item in the list box.ResRetrieves the application-supplied 32-bit value associated with the specified list-box item as a pointer (void*).?
typedef struct _LVITEM {
UINT mask;
int iItem;
int iSubItem;
UINT state;
UINT stateMask;
LPTSTR pszText;
int cchTextMax;
int iImage;
LPARAM lParam;
#if (_WIN32_IE >= 0x0300)
int iIndent;
#endif
} LVITEM, FAR *LPLVITEM;
//
CListCtrl::GetItem
BOOL GetItem( LVITEM* pItem ) const;
你用的是ListCtrl还是ListBox
你说的事他们的Item?
通过GetItem?
看看GetItemDataPtr是不是你需要的
CListBox::GetItemDataPtr
void* GetItemDataPtr( int nIndex ) const;Return ValueRetrieves a pointer, or –1 if an error occurs.ParametersnIndexSpecifies the zero-based index of the item in the list box.ResRetrieves the application-supplied 32-bit value associated with the specified list-box item as a pointer (void*).?