如何在C#中实现overlayicon [英] how to achieve overlayicon in c#

查看:198
本文介绍了如何在C#中实现overlayicon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
如何在c#中实现叠加图标(如保管箱图标叠加)..
如果有人问我,请告诉我..

hi to all..
how to achieve overlay icon in c#( like dropbox icon overlay)..
if any body knows pls let me know..

推荐答案

如果您要问我自己是什么(问题尚不清楚),则需要画出组合框项目自己.将绘图模式设置为OwnerDrawFixed并处理DrawItem事件以绘制每个项目.在 DrawItemEventArgs 中提供了项目的边界,颜色和字体. [^ ]所以这很容易.您可以在文本中绘制所需的任何状态指示器.
If you''re asking what I think you are (the question is unclear), you need to draw the combo box items yourself. Set the drawing mode to OwnerDrawFixed and handle the DrawItem event to paint each item. The item bounds, colours and font are given to you in the DrawItemEventArgs[^] so it is quite easy. You can paint any status indicator you wish along with the text.


这篇关于如何在C#中实现overlayicon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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