使用TTS_BALLOON型的CToolTipCtrl,如何编程控制文本窗口相对于指示点(stem)的位置(上、下、左、右)?

lasor 2003-11-10 09:10:53
使用TTS_BALLOON型的CToolTipCtrl,如何编程控制文本窗口相对于指示点(stem)的位置(上、下、左、右)?
...全文
110 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lasor 2003-11-12
  • 打赏
  • 举报
回复
fayifu(fayifu):

CBalloonTip好象不属于MFC
fayifu 2003-11-10
  • 打赏
  • 举报
回复
// Get the edit box co-ordinates in screen co-ordinates
CRect rect;
m_ctlProname.GetWindowRect(&rect); //获得相应控件窗口尺寸

// Point where the balloon will be show, middle of edit box
CPoint pt = rect.CenterPoint(); //此处可以改变pt值

m_pBalloonTip = CBalloonTip::Show(pt, CSize(170, 60), _T("提示信息"), lf, 2, TRUE); //CSize(170, 60)根据你的需要也可相应赋值

15,979

社区成员

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

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