please dont rip this site Prev Next

LV_DISPINFO info  Overview  Group

The LV_DISPINFO structure contains information needed to display an owner-drawn item in a list view control.

typedef struct tagLV_DISPINFO { 

    NMHDR   hdr; 

    LV_ITEM item; 




Specifies a NMHDR structure. The code member of this structure identifies the notification message being sent. It can be one of the following notification codes: LVN_GETDISPINFO or LVN_SETDISPINFO.
Specifies an LV_ITEM structure that identifies the item or subitem. The structure either contains or receives information about the item. The mask member contains a set of bit flags that specify which item attributes are relevant. You can set one or more of the following bit flags:




The iImage member specifies, or is to receive, the index of the itemís icon in the image list.


The state member specifies, or is to receive, the state of the item.


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, the pszText and cchTextMax members specify the address and size of a buffer. You can either copy text to the buffer or assign the address of a string to the pszText member. In the latter case, you must not change or delete the string until the corresponding item text is deleted or two additional LVN_GETDISPINFO messages have been sent.

If you are handling the LVN_GETDISPINFO message, you can set the LVIF_DI_SETITEM flag in the mask member. This tells the operating system to store the requested list item information, and not ask for it again.


When a list view control sends the LVN_GETDISPINFO or LVN_SETDISPINFO notification codes, it passes a pointer to an LV_DISPINFO structure as the lParam parameter of a WM_NOTIFY message.

See Also


file: /Techref/os/win/api/win32/struc/src/str10_16.htm, 3KB, , updated: 2000/4/7 12:20, local time: 2024/4/24 19:28,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!


After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?


Welcome to!


Welcome to!