在MFC中显示clistctrl的工具提示 [英] Show tooltip for clistctrl in MFC

查看:72
本文介绍了在MFC中显示clistctrl的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题要显示ClistCtrl的工具提示。


我在网上搜索了一些解决方案。


我找到了只使用派生类的解决方案。


是否可以在没有派生ClistCtrl的ClistCtrl中使用工具提示?


解决方案

如果您只想要一个超过完整CListCtrl的工具提示,则需要的内容与不需要子类的内容相同。您可以按原样使用CToolTipCtrl。


但是如果你想要不同的内容,这取决于Tooltip在CListCtrl上的行位置,而不是使用CListCtrl派生类。


I have problems to show a tooltip for a ClistCtrl.

I searched for some solutions in the web.

I found only solution where derived classes are used.

Is it possible to use tooltips in ClistCtrl without a derivate ClistCtrl?

解决方案

If you only want a tooltip that has over the complete CListCtrl the same content than no subclassing is needed. You can use CToolTipCtrl as is.

But if you want i.e. different content depending on the line position of Tooltip over the CListCtrl than it makes sense to use a CListCtrl derived class.


这篇关于在MFC中显示clistctrl的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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