Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Is there any way to set overlay icons for some items of ListView control in c#? I tried status icons but they don't overlay. Thanks in advance.
Posted
Updated 6-Dec-11 3:22am
v3

1 solution

From Reference Link :- About List-View Controls [^]

To use overlay images in a list-view control:
A) Call the ImageList_SetOverlayImage function to assign an overlay image index to an image in the full-sized and small icon image lists. An overlay image is identified by a one-based index.
B) You can associate an overlay image index with an item when you call the ListView_InsertItem or ListView_SetItem macro. Use the INDEXTOOVERLAYMASK macro to specify an overlay image index in the state member of the item's LVITEM structure. You must also set the LVIS_OVERLAYMASK bits in the stateMask member.

Suggested Link :-
ImageList_SetOverlayImage function[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900