|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| commctrl.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
TV_DISPINFO
The TV_DISPINFO structure retrieves and sets information about a tree-view item.
typedef struct _TV_DISPINFO { tvdi
NMHDR hdr;
TV_ITEM item;
} TV_DISPINFO;
Members
hdr
Specifies a NMHDR structure, which enables a tree-view control to pass a pointer to a TV_DISPINFO structure as the lParam parameter of a WM_NOTIFY message.
item
Specifies a TV_ITEM structure that identifies and contains information about the tree-view item.
The mask member of the TV_ITEM 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 non-selected 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 pointer to 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 TV_ITEM 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 messages have been sent.
Remarks
A pointer to a TV_DISPINFO structure is passed as the lParam parameter when a tree-view control sends a WM_NOTIFY message with the TVN_GETDISPINFO and TVN_SETDISPINFO notification codes. A tree-view control sends these notifications in the
following situations in which the parent window of the control stores information
about a tree-view item:
- If the pszText member of the item's TV_ITEM structure is the LPSTR_TEXTCALLBACK value, the control sends these
notifications to retrieve or set the item's text.
- If the iImage or iSelectedImage member of the item's TV_ITEM structure is the I_IMAGECALLBACK value, the control sends these notifications
to retrieve or set the index of an item's icons in the control's image list.
- If the cChildren member of the item's TV_ITEM structure is the I_CHILDRENCALLBACK value, the control sends these
notifications to retrieve or set a value that indicates whether the item has child items.
See Also
NMHDR, TV_ITEM, TVN_GETDISPINFO, TVN_SETDISPINFO, WM_NOTIFY
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|