CNewsFeed::GetItemText Method  
 
INT GetItemText(
  UINT nItemId,  
  LPTSTR lpszBuffer,  
  INT nMaxLength  
);
INT GetItemText(
  UINT nItemId,  
  CString& strBuffer  
);

The GetItemText method is used to return a copy of an item's description.

Parameters

nItemId
An integer value which identifies the news feed item. The first item identifier in the news feed has a value of one, and that value is incremented for each additional item in the feed. If this parameter is zero or specifies a value larger than the number of items in the feed, this method will fail.
lpszBuffer
A null-terminated string buffer which will contain the value of the item description. If this parameter is a NULL pointer, it will be ignored and the method will only return the length of the item description.
nMaxLength
The maximum number of characters that may be copied into the description buffer. If the value of this parameter is zero, then the lpszValue parameter is ignored and the method will only return the length of the item description.

Return Value

If the method succeeds, the return value is the length of the item description. A return value of zero indicates that the item does not have a description. If the method fails, the return value is RSS_ERROR. To get extended error information, call GetLastError.

Remarks

The GetItemText function is used to obtain a copy of the string that describes the specified item. Typically this is text that provides a summary of the news feed item and is used in conjunction with the item's title and hyperlink to additional content.

The content of an item description is typically either plain text or HTML formatted text. It is the responsibility of the application to display the content in a format is appropriate for the end-user.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csrssv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also