SEC_TREECLASS::GetItem

Retrieves the attributes of the specified item.

Defined in: trcore.inl

Syntax

GetItem(TV_ITEM* pTVI, BOOL bCopyText, BOOL bGetDispInfo)

GetItem(LV_ITEM* pLVI, BOOL bCopyText, BOOL bGetDispInfo)

Return Value

Nonzero if successful; otherwise NULL.

Parameters

pTVI

A pointer to a TV_ITEM structure.

pLVI

A pointer to an LV_ITEM structure.

bCopyText

If TRUE, the text for the item will be copied into your structure, otherwise the string pointer will be copied. Default is TRUE.

bGetDispInfo

If current item is a callback item, and this flag is set to TRUE, the tree view control sends the parent window a TVN_GETDISPINFO notification message. By default, this flag is set to FALSE.

Comments

Call this function to retrieve the attributes of the specified tree view item. The first version of this function passes a pointer to a TV_ITEM structure. Note that the second version of this function is virtual, passing a pointer to an LV_ITEM structure. See the MFC documentation for complete information on these structures.