Skip to content

Latest commit

 

History

History
147 lines (119 loc) · 5.28 KB

ns-commctrl-nmtvdispinfoa.md

File metadata and controls

147 lines (119 loc) · 5.28 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:commctrl.tagTVDISPINFOA
NMTVDISPINFOA (commctrl.h)
Contains and receives display information for a tree-view item. This structure is identical to the TV_DISPINFO structure, but it has been renamed to follow current naming conventions. (ANSI)
*LPNMTVDISPINFOA
LPNMTVDISPINFO
LPNMTVDISPINFO structure pointer [Windows Controls]
NMTVDISPINFO
NMTVDISPINFO structure [Windows Controls]
NMTVDISPINFOA
NMTVDISPINFOW
TVIF_CHILDREN
TVIF_IMAGE
TVIF_SELECTEDIMAGE
TVIF_TEXT
_win32_NMTVDISPINFO
_win32_NMTVDISPINFO_cpp
commctrl/LPNMTVDISPINFO
commctrl/NMTVDISPINFO
commctrl/NMTVDISPINFOA
commctrl/NMTVDISPINFOW
controls.NMTVDISPINFO
controls._win32_NMTVDISPINFO
controls\NMTVDISPINFO.htm
Controls
VS|Controls|~\controls\treeview\structures\nmtvdispinfo.htm
12/05/2018
*LPNMTVDISPINFOA, LPNMTVDISPINFO, LPNMTVDISPINFO structure pointer [Windows Controls], NMTVDISPINFO, NMTVDISPINFO structure [Windows Controls], NMTVDISPINFOA, NMTVDISPINFOW, TVIF_CHILDREN, TVIF_IMAGE, TVIF_SELECTEDIMAGE, TVIF_TEXT, _win32_NMTVDISPINFO, _win32_NMTVDISPINFO_cpp, commctrl/LPNMTVDISPINFO, commctrl/NMTVDISPINFO, commctrl/NMTVDISPINFOA, commctrl/NMTVDISPINFOW, controls.NMTVDISPINFO, controls._win32_NMTVDISPINFO
commctrl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
NMTVDISPINFOW (Unicode) and NMTVDISPINFOA (ANSI)
Windows
NMTVDISPINFOA, *LPNMTVDISPINFOA
19H1
tagTVDISPINFOA
commctrl/tagTVDISPINFOA
LPNMTVDISPINFOA
commctrl/LPNMTVDISPINFOA
NMTVDISPINFOA
commctrl/NMTVDISPINFOA
c++
APIRef
kbSyntax
HeaderDef
Commctrl.h
NMTVDISPINFO
NMTVDISPINFOA
NMTVDISPINFOW

NMTVDISPINFOA structure

-description

Contains and receives display information for a tree-view item. This structure is identical to the TV_DISPINFO structure, but it has been renamed to follow current naming conventions.

-struct-fields

-field hdr

Type: NMHDR

NMHDR structure that contains information about this notification.

-field item

Type: TVITEM

TVITEM structure that identifies and contains information about the tree-view item. The mask member of the TVITEM structure specifies which information is being set or retrieved. It can be one or more of the following values:

Value Meaning
TVIF_CHILDREN
The cChildren member specifies, or is to receive, a value that indicates whether the item has child items.
TVIF_IMAGE
The iImage member specifies, or is to receive, the index of the item's nonselected icon in the image list.
TVIF_SELECTEDIMAGE
The iSelectedImage member specifies, or is to receive, the index of the item's selected icon in the image list.
TVIF_TEXT
The pszText member specifies the new item text or the address of a buffer that is to receive the item text. If the structure is receiving item text, you typically copy the text to the buffer pointed to by the pszText member of the TVITEM structure. However, you can return a string in the pszText member instead. If you do so, you cannot change or delete the string until the corresponding item text is deleted or until two additional TVN_GETDISPINFO notification codes have been sent.

-see-also

Reference

TVN_SETDISPINFO

WM_NOTIFY

-remarks

Note

The commctrl.h header defines NMTVDISPINFO as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.