CToolTipCtrl在CComboBox控件上显示提示信息
2014-08-27 11:22
141 查看
CToolTipCtrl m_tooltip;
CRect rect;
OnInitDialog()中:
GetDlgItem(IDC_COMBO1)->GetClientRect(rect);
OnMouseMove中:
m_tooltip.Create(this);
m_tooltip.Activate(true);
m_tooltip.SetTipBkColor(RGB(0,144,18));
m_tooltip.SetTipTextColor(RGB(255,254,255));
m_tooltip.SetDelayTime(50);
m_tooltip.SetDelayTime(TTDT_AUTOPOP,8000);
m_tooltip.SetMaxTipWidth(290);
m_tooltip.Activate(true);
m_tooltip.Update();
m_tooltip.AddTool(GetDlgItem(IDC_COMBO1),"可以关闭该对话框",&rect);
PreTranslateMessage中:
m_tooltip.RelayEvent(pMsg);
CRect rect;
OnInitDialog()中:
GetDlgItem(IDC_COMBO1)->GetClientRect(rect);
OnMouseMove中:
m_tooltip.Create(this);
m_tooltip.Activate(true);
m_tooltip.SetTipBkColor(RGB(0,144,18));
m_tooltip.SetTipTextColor(RGB(255,254,255));
m_tooltip.SetDelayTime(50);
m_tooltip.SetDelayTime(TTDT_AUTOPOP,8000);
m_tooltip.SetMaxTipWidth(290);
m_tooltip.Activate(true);
m_tooltip.Update();
m_tooltip.AddTool(GetDlgItem(IDC_COMBO1),"可以关闭该对话框",&rect);
PreTranslateMessage中:
m_tooltip.RelayEvent(pMsg);
相关文章推荐
- 使用CToolTipCtrl控件实现光标移动到一个控件时显示特定的提示信息
- 在CListCtrl的每个项都显示不同的提示信息(CToolTipCtrl)
- 鼠标onmousemove 到控件上,显示提示信息!
- 使用ToolTip控件显示提示信息
- 鼠标停在控件上就显示提示信息
- VC/MFC 当鼠标移到控件上时显示提示信息
- 鼠标移动到控件上显示提示信息
- 控件提示信息 setToolTipText(Java component )换行显示的详细实现(源代码)
- [MFC] 鼠标移动到控件上显示提示信息
- .Net验证控件显示提示信息
- JQuery应用 - 移动至控件显示提示信息
- C#在同一个控件的不同位置显示提示信息
- MFC之对话框程序界面控件提示信息操作CToolTipCtrl
- 如何在CStatic控件的指定位置显示提示信息
- VC/MFC 当鼠标移到控件上时显示提示信息
- 在MFC中,给各个控件显示变化的提示信息
- 继承 TPaintBox 实现信息发布滚屏显示控件
- OWA或Messenger样式的信息提示窗口——编写ASP.NET AJAX Extender控件(中):封装成服务器端控件
- GridView更新和删除显示提示信息
- 让超链接显示提示信息的js代码