CLinkCtrl::GetItemID
Retrieves the ID of a link control item.
BOOL GetItemID(
int iLink,
CString& strID
) const;
BOOL GetItemID(
int iLink,
LPWSTR szID,
UINT cchID
) const;
Параметры
iLink
The index of a link control item.strID
A CStringT object containing the ID of the specified item.szID
A null-terminated string containing the ID of the specified item.cchID
The size in characters of the szID buffer.
Возвращаемое значение
Returns TRUE on success, FALSE on failure.
Примечание. |
---|
This function also returns FALSE if the buffer of szID or strID is smaller than MAX_LINKID_TEXT. |
Заметки
Retrieves the ID of a specific link control item. For more information, see the Win32 message LM_GETITEM in the Windows SDK.
Требования
Header: afxcmn.h