Поделиться через


CLinkCtrl::GetItemUrl

Retrieves the URL represented by the link control item.

BOOL GetItemUrl(
   int iLink,
   CString& strUrl 
) const;
BOOL GetItemUrl(
   int iLink,
   LPWSTR szUrl,
   UINT cchUrl 
) const;

Параметры

  • iLink
    The index of a link control item.

  • strUrl
    A CStringT object containing the URL represented by the specified item

  • szUrl
    A null-terminated string containing the URL represented by the specified item

  • cchUrl
    The size in characters of the szURL buffer.

Возвращаемое значение

Returns TRUE on success, FALSE on failure.

ПримечаниеПримечание.

This function also returns FALSE if the buffer of szUrl or strUrl is smaller than MAX_LINKID_TEXT.

Заметки

Retrieves the URL represented by the specified link control item. For more information, see the Win32 message LM_GETITEM in the Windows SDK.

Требования

Header: afxcmn.h

См. также

Основные понятия

CLinkCtrl Class

CLinkCtrl Members

Hierarchy Chart

CLinkCtrl::SetItemUrl

CLinkCtrl::GetItem