Skip to content

Latest commit

 

History

History
88 lines (51 loc) · 2.73 KB

tvn-setdispinfo.md

File metadata and controls

88 lines (51 loc) · 2.73 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TVN_SETDISPINFO notification code (Commctrl.h)
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.
40fa61bc-c043-4001-ada9-b627d68bd737
TVN_SETDISPINFO notification code Windows Controls
apiref
TVN_SETDISPINFO
TVN_SETDISPINFOA
TVN_SETDISPINFOW
Commctrl.h
HeaderDef
reference
05/31/2018

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

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h
Unicode and ANSI names
TVN_SETDISPINFOW (Unicode) and TVN_SETDISPINFOA (ANSI)

See also

TVITEM

TVITEMEX

TVN_GETDISPINFO