Export (0) Print
Expand All

TVN_SETDISPINFO notification code

Notifies a tree-view control's parent window that it must update the information it maintains about an item. This notification code is sent in the form of a WM_NOTIFY message.


TVN_SETDISPINFO 

    lptvdi = (LPNMTVDISPINFO) lParam 

Parameters

lParam

Pointer to an NMTVDISPINFO structure that describes the item being updated. The hItem member of the TVITEM structure specifies the item being updated, and the mask member specifies which attributes of the item are being updated.

Return value

The return value is ignored.

Remarks

If the pszText member of the item's TVITEM structure is the LPSTR_TEXTCALLBACK value, the control sends this notification to set the item's text. In this case, the mask member of lParam will have the TVIF_TEXT flag set.

If the iImage or iSelectedImage member of the item's TVITEM structure is the I_IMAGECALLBACK value, the control sends this notification to retrieve the index of the icon image to display. In this case, the mask member of lParam will have the TVIF_IMAGE or TVIF_SELECTEDIMAGE flag set.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Unicode and ANSI names

TVN_SETDISPINFOW (Unicode) and TVN_SETDISPINFOA (ANSI)

See also

TVITEM
TVITEMEX
TVN_GETDISPINFO

 

 

Community Additions

ADD
Show:
© 2014 Microsoft