目标很简单:鼠标靠近的时候显示一个toolTip,要显示多行数据。
查看MSDN的CToolTipCtrl Class 的时候竟然第一句就是下面这个:
Encapsulates the functionality of a "tool tip control," a small pop-up window that displays a single line of text describing the purpose of a tool in an application.
displays a single line of text?????
single line!!!!
不是multiple line 吗??!!我要的结果是multiple line啊。
其实可以啊。
不信你看资源,
下载
使用方法:
创建一个对话框程序,拉一个Static控件,改下ID,关联一下变量。
把两个文件添加到工程中,然后在.h中把CStatic改成下载的类名即可。
注意,没有针对VC6.0做修改,在VS2010上弄的。
用VC的朋友自己把字符串的L改成_T();
骗点分不容易啊。