|
项目描述: |
This class shows how I went about implementing my own tooltip window when I had trouble getting the standard Tooltips to provide the functionality I wanted. The attached code readily demonstrates the concepts of defining your own windows for use with MFC, installing keyboard hooks, and handling the correct clean-up of the system on completion (note the static methods and instance counting). The windows use the same colour scheme as Tooltips under Win95/NT (COLOR_INFOBK + COLOR_INFOTEXT) but you can choose your own colours should you wish (see the OnPaint method).
DataTip这个类演示了我实现自己的工具提示窗口的方法,解决了在向标准的工具条增加我需要的功能时遇到的一些问题。所附的代码演示了使用MFC来定义自己的窗口,安装键盘hook,当完成时处理系统清除(注意静态方法和实例计数)。Windows在Win95/NT 中的工具条使用了同样的颜色模式 (COLOR_INFOBK + COLOR_INFOTEXT) ,但你可以选择自己定义的颜色模式(查看OnPaint 方法)。
来源: http://www.codeguru.com/controls/datatip.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
simdatatip |
 1.0  |
2004-04-18 |
下载 |
|
|