[SysTreeView32]如何使用TVS_EX_RICHTOOLTIP? [英] [SysTreeView32] How to use TVS_EX_RICHTOOLTIP?

查看:99
本文介绍了[SysTreeView32]如何使用TVS_EX_RICHTOOLTIP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道应该如何使用新的TVS_EX_RICHTOOLTIP样式。当然,您使用TVM_SETEXTENDEDSTYLE设置此样式。但Windows SDK说"在树视图中允许丰富的工具提示(使用图标和文本自定义)"而且我问自己
如何让工具提示显示一个图标。

I wonder how the new TVS_EX_RICHTOOLTIP style is supposed to be used. Of course you set this style using TVM_SETEXTENDEDSTYLE. But the Windows SDK says "Allow rich tooltips in the tree view (custom drawn with icon and text)" and I'm asking myself
how to make the tooltip display an icon.

上面引用的句子听起来像我必须处理工具提示发送到树视图的NM_CUSTOMDRAW通知。但是如果没有设置TVS_EX_RICHTOOLTIP,工具提示也会发送NM_CUSTOMDRAW消息,所以我没有看到TVS_EX_RICHTOOLTIP存在的原因。

The quoted sentence above sounds like I'd have to handle the NM_CUSTOMDRAW notification that the tooltip sends to the treeview. But the tooltip sends NM_CUSTOMDRAW message also if TVS_EX_RICHTOOLTIP isn't set, so I don't see a reason for the existence of TVS_EX_RICHTOOLTIP.

有谁可以请给我一些示例代码来演示如何使用这个TVS_EX_RICHTOOLTIP的东西?

Could anyone please give me some sample code that demonstrates how to use this TVS_EX_RICHTOOLTIP thing?

推荐答案

没人知道?


这篇关于[SysTreeView32]如何使用TVS_EX_RICHTOOLTIP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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