Condividi tramite


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;

Parameters

  • 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.

Return Value

Returns TRUE on success, FALSE on failure.

Nota

This function also returns FALSE if the buffer of szID or strID is smaller than MAX_LINKID_TEXT.

Remarks

Retrieves the ID of a specific link control item. For more information, see the Win32 message LM_GETITEM in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CLinkCtrl Class

Hierarchy Chart

CLinkCtrl::SetItemID

CLinkCtrl::GetItem

Other Resources

CLinkCtrl Members