ListView覆盖图标 [英] ListView overlay icons

查看:125
本文介绍了ListView覆盖图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法来设置图标覆盖在C#ListView控件的一些项目?我试着状态图标,但他们不要为叠加.由于事先

解决方案
从参考链接: - About列表视图控件 [ ^ ]

要在列表视图控件使用的重叠影像:
A)调用函数来叠加图像索引中的全尺寸和小图标图像列表分配给图像.覆盖图像是由一个基于一个索引来标识.
B)您可以叠加图像索引与物品,当你调用宏关联.使用宏在该项目的状态成员来指定叠加图像索引'的结构.此外,还必须设置位在构件.

推荐链接: -
ImageList_SetOverlayImage函数 [ ^ ]

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.

解决方案

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[^]


这篇关于ListView覆盖图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆