CTabCtrl 中 增加tooltip提示信息

udtech 2011-03-28 04:25:31
各位大虾:
怎么给CTabCtrl 中的控件增加tooltip提示信息啊。
程序的主界面上的控件能行,但是在CTabCtrl 上的控件好像不行啊,望大虾们指教啊。
...全文
238 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
向立天 2011-04-25
  • 打赏
  • 举报
回复
您好
我是本版版主
此帖已多日无人关注
请您及时结帖
如您认为问题没有解决可按无满意结帖处理
另外本版设置了疑难问题汇总帖
并已在版面置顶
相关规定其帖子中有说明
您可以根据规定提交您帖子的链接
如您目前不想结帖只需回帖说明
我们会删除此结帖通知

见此回复三日内无回应
我们将强制结帖
相关规定详见界面界面版关于版主结帖工作的具体办法
Eleven 2011-03-28
  • 打赏
  • 举报
回复
muzizongheng 2011-03-28
  • 打赏
  • 举报
回复
一样的处理。 就是CToolTip的通用用法。

Construct the CToolTipCtrl object. 

Call Create to create the Windows tool tip common control and attach it to the CToolTipCtrl object.

Call AddTool to register a tool with the tool tip control, so that the information stored in the tool tip is displayed when the cursor is on the tool.

Call SetToolInfo to set the information that a tool tip maintains for a tool.

Call SetToolRect to set a new bounding rectangle for a tool.

Call HitTest to test a point to determine whether it is within the bounding rectangle of the given tool and, if so, retrieve information about the tool.

Call GetToolCount to retrieve a count of the tools registered with the tool tip control.

CppCoder 2011-03-28
  • 打赏
  • 举报
回复
这样试试
派生自己的多选框、编辑框,在派生类中定义自己的TIP
udtech 2011-03-28
  • 打赏
  • 举报
回复
不行啊,建立属性页后,要建立一个对话框资源和其中的一个属性页关联,在这个对话框资源上再增加控件,比如说多选框或者编辑框,现在的问题是怎么给多选框或是编辑框增加tooltip提示信息。

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧