山寨:不是最好的,是最适合我们的!欢迎体验山寨 中文版MSDN

Blog @ Blog

当华美的叶片落尽,生命的脉络才历历可见。 -- 聂鲁达

常用链接

统计

积分与排名

BBS

Blog

Web

最新评论

VC6.0实现鼠标显示按钮功能提示文本

本文以VC6.0对话框应用程序为例,当鼠标在按钮上移动、按下或者弹起时显示按钮功能提示文本,本文将在按钮上显示功能提示文本:“IT知道网
CXXXDlg.h文件中定义:
public:
  CToolTipCtrl m_openToolTip; 
 
CXXXDlg.cppOnInitDialog()中初始化: 
 m_openToolTip.Create(this); 
 m_openToolTip.AddTool( GetDlgItem(IDC_BOTTON), "IT知道网" );
 m_openToolTip.SetDelayTime(200);
 m_openToolTip.SetTipTextColor( #0000ff );
 m_openToolTip.SetTipBkColor( #ffffff);
 m_openToolTip.Activate(TRUE);
 
重载函数PreTranslateMessage
BOOL CXXXDlg::PreTranslateMessage(MSG* pMsg)
{
 // TODO: Add your specialized code here and/or call the base class
 switch(pMsg->message)
 {
 case WM_LBUTTONDOWN:
 case WM_LBUTTONUP:
 case WM_MOUSEMOVE:
  m_openToolTip.RelayEvent(pMsg);
 }

 return CDialog::PreTranslateMessage(pMsg);

posted on 2009-07-16 15:04 isabc 阅读(3465) 评论(7)  编辑 收藏 引用 所属分类: VC界面

评论

# re: VC6.0实现鼠标显示按钮功能提示文本 2010-07-18 01:33 Irma28Rhodes

Following my analysis, billions of persons in the world receive the <a href="http://bestfinance-blog.com">loan</a> at good banks. So, there's a good possibility to find a collateral loan in all countries.   回复  更多评论   

# re: VC6.0实现鼠标显示按钮功能提示文本 2010-07-25 04:49 do my essay

I opine that you really know how not easy can the custom research paper creating be. But, you shouldn’t be disappointed, just because the research paper writing services offer the online essays and there’s not a big problem to order essay and be totally happy.   回复  更多评论   

# re: VC6.0实现鼠标显示按钮功能提示文本 2010-08-23 16:44 research paper services

Really a illuminative and explanatory advise, the post is great in all regards,I am glad to read through this post. If any single writer is like, students would ne'er have got any problems with buy paper. Thanks.  回复  更多评论   

# re: VC6.0实现鼠标显示按钮功能提示文本 2010-11-09 15:11 plagiarism detector

We're not lawbreakers! Plagiarized content suppose to be a crime. I always try to avoid plagiarized stuff. Thus, plagiarism detector helps very much.   回复  更多评论   

# re: VC6.0实现鼠标显示按钮功能提示文本 2010-11-09 15:12 research papers online

Numbers of famous guys didn't have got cool writing skillfulness. I think that common students should order paper writing having no remorse.   回复  更多评论   

# re: VC6.0实现鼠标显示按钮功能提示文本 2011-03-17 17:30 buy an essay online

Really a illuminative and explanatory advise, the post is great in all regards,I am glad to read through this post.  回复  更多评论   

# re: VC6.0实现鼠标显示按钮功能提示文本 2013-04-06 17:07 review writing service

Don’t have the faintest idea which firm to select to get help from? Look over BestCustomPapers testimonials "best-writing-services.com", and reach a good choice.  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


广告信息(免费广告联系)

中文版MSDN:
欢迎体验