VC轻松实现非客户区按钮示例及源码

上传者: testcs_dn | 上传时间: 2012-06-12 00:00:00 | 文件大小: 36KB | 文件类型: rar
VC轻松实现非客户区按钮示例及源码 有时我们需要在非客户区(例如:标题栏)添加按钮,并对按钮作出响应。为此我封装了两个类CNCButton和CNCButtonManager,CNCButton主要用于按钮绘制,CNCButtonManager用于按钮的管理并对非客户区的消息进行处理

文件下载

资源详情

[{"title":"( 28 个子文件 36KB ) VC轻松实现非客户区按钮示例及源码","children":[{"title":"TitleButtonTest2","children":[{"title":"NCButtonManager.cpp <span style='color:#111;'> 9.31KB </span>","children":null,"spread":false},{"title":"NCButtonManager.h <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2.rc <span style='color:#111;'> 11.63KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"TitleButtonTest2Doc.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Toolbar.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"pen2.bmp <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"pen1.bmp <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"TitleButtonTest2.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2.rc2 <span style='color:#111;'> 408B </span>","children":null,"spread":false}],"spread":true},{"title":"TitleButtonTest2.dsp <span style='color:#111;'> 5.25KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2.cpp <span style='color:#111;'> 4.29KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2View.cpp <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"NCButton.h <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2.plg <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"NCButton.cpp <span style='color:#111;'> 15.94KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2.aps <span style='color:#111;'> 29.88KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2View.h <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2.dsw <span style='color:#111;'> 557B </span>","children":null,"spread":false},{"title":"TitleButtonTest2Doc.cpp <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"MainFrm.cpp <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2.h <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 693B </span>","children":null,"spread":false},{"title":"copyright.bat <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"TitleButtonTest2.clw <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"MainFrm.h <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"TitleButtonTest2Doc.h <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • zkw0302 :
    达不到想要的效果
    2018-12-18
  • m0_37740715 :
    button2能显示,button1和button3显示不出来,如果把button1和button3往下移动到菜单区域,就可以显示了,请问这是为什么?
    2017-11-12
  • laughtianxia :
    实现了想要的功能
    2016-12-07
  • jetwang :
    挺好的,解决了我一个疑惑,谢谢LZ
    2014-01-11
  • 小小一点通 :
    绘画了非客户区的标题栏。效果不错的。
    2013-05-02

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明