自绘CButton及使用OnCtlColor定制窗口背景

上传者: he_bau | 上传时间: 2022-04-17 22:21:41 | 文件大小: 7.05MB | 文件类型: RAR
通过重载DrawItem实现自绘CButton的功能,其中子控件要设Owner Draw属性为TRUE,动态创建CButton控件时添加BS_OWERDRAW属性。 通过重载OnCtrlcolor函数实现定制窗口背景功能。

文件下载

资源详情

[{"title":"( 33 个子文件 7.05MB ) 自绘CButton及使用OnCtlColor定制窗口背景","children":[{"title":"自绘CButton及使用定制窗口背景","children":[{"title":"0822","children":[{"title":"0822Dlg.h <span style='color:#111;'> 722B </span>","children":null,"spread":false},{"title":"MyButton.h <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"0822Dlg.cpp <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"0822.aps <span style='color:#111;'> 56.90KB </span>","children":null,"spread":false},{"title":"0822.rc <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false},{"title":"0822.vcproj <span style='color:#111;'> 5.43KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc80.pdb <span style='color:#111;'> 676.00KB </span>","children":null,"spread":false},{"title":"0822.exe.intermediate.manifest <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 264.30KB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 6.04KB </span>","children":null,"spread":false},{"title":"0822Dlg.obj <span style='color:#111;'> 40.47KB </span>","children":null,"spread":false},{"title":"0822.pch <span style='color:#111;'> 12.88MB </span>","children":null,"spread":false},{"title":"vc80.idb <span style='color:#111;'> 691.00KB </span>","children":null,"spread":false},{"title":"MyButton.obj <span style='color:#111;'> 25.66KB </span>","children":null,"spread":false},{"title":"0822.obj <span style='color:#111;'> 21.64KB </span>","children":null,"spread":false},{"title":"0822.res <span style='color:#111;'> 22.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.cpp <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 4.11KB </span>","children":null,"spread":false},{"title":"0822.cpp <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"0822.vcproj.WANGSHAOJIE.yanf3.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 676B </span>","children":null,"spread":false},{"title":"MyButton.cpp <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"0822.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"My0822.rc2 <span style='color:#111;'> 397B </span>","children":null,"spread":false}],"spread":false},{"title":"0822.h <span style='color:#111;'> 500B </span>","children":null,"spread":false}],"spread":false},{"title":"0822.ncb <span style='color:#111;'> 9.71MB </span>","children":null,"spread":false},{"title":"0822.sln <span style='color:#111;'> 877B </span>","children":null,"spread":false},{"title":"0822.suo <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"0822.exe.manifest <span style='color:#111;'> 942B </span>","children":null,"spread":false},{"title":"0822.ilk <span style='color:#111;'> 955.22KB </span>","children":null,"spread":false},{"title":"0822.pdb <span style='color:#111;'> 3.24MB </span>","children":null,"spread":false},{"title":"0822.exe <span style='color:#111;'> 108.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • xinluoqibu :
    还不错,可以参考。
    2014-01-10
  • zgc5824049 :
    看错了,不是我要的,不过不错,可以学习了解一下
    2013-08-19
  • cddchina :
    还行吧,不过不是自己想要的那种
    2013-05-04
  • dreambox009 :
    还行,不过后来自己也修改了一些。
    2012-10-22

免责申明

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