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 itemszUrl
A null-terminated string containing the URL represented by the specified itemcchUrl
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