CResizeDlgDemo_Src

上传者: hplight | 上传时间: 2021-06-22 14:06:56 | 文件大小: 58KB | 文件类型: RAR
实际项目中经常会用到对话框,但MFC自带的CDialog类没有自动布局的功能,每添加一个子控件,都要在OnSize()中写相应的代码来控制子窗口移动,非常麻烦。CResizeDlg派生自CDialog类,可以自动完成子控件的布局,大大加快开发速度了。本类支持子控件为对话框的情况。 网上已经有一个CResizeDlg源代码,但在实际使用时遇到两个问题: 1、不支持子控件为对话框时的情况(实际项目中常有在父CDialog中创建一个Child-CDialog的情况)。 2、当缩放Group控件时,Group将会发生重绘混乱(这个问题很严重,使我不得不重写一个CResizeDlg类)。 本类很好的解决了上面两个问题,并且更加简单易用。

文件下载

资源详情

[{"title":"( 29 个子文件 58KB ) CResizeDlgDemo_Src","children":[{"title":"ResizeDlgDemo_Src","children":[{"title":"DlgEmbed2.cpp <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"ResizeDemo.cpp <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"theme.manifest <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"ResizeDemo.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"ResizeDemo.rc2 <span style='color:#111;'> 402B </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"ResizeDemo.dsw <span style='color:#111;'> 545B </span>","children":null,"spread":false},{"title":"ResizeDemo.ncb <span style='color:#111;'> 113.00KB </span>","children":null,"spread":false},{"title":"ResizeDemo.h <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"DlgEmbed1.cpp <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"ResizeDemo.rc <span style='color:#111;'> 9.03KB </span>","children":null,"spread":false},{"title":"ResizeDemo.plg <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"ResizeDemoDlg.cpp <span style='color:#111;'> 9.33KB </span>","children":null,"spread":false},{"title":"ResizeDemo.opt <span style='color:#111;'> 56.50KB </span>","children":null,"spread":false},{"title":"DlgEmbed1.h <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"ResizeDemo.aps <span style='color:#111;'> 40.43KB </span>","children":null,"spread":false},{"title":"ResizeDemo.exe <span style='color:#111;'> 36.00KB </span>","children":null,"spread":false},{"title":"DlgEmbedMng.h <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"ResizeDlg","children":[{"title":"ResizeDlg.cpp <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false},{"title":"ResizeDlg.h <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"DlgEmbed2.h <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"ResizeDemo.clw <span style='color:#111;'> 3.29KB </span>","children":null,"spread":false},{"title":"ResizeDemoDlg.h <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"ResizeDemo.dsp <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"DlgEmbedMng.cpp <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • liang_jin_happy :
    效果还可以 ,感谢分享
    2016-09-22
  • crazyeagle :
    很不错的资料,比较实用.
    2014-12-25
  • aerolee31 :
    好用!!效果跟EasySize差不多
    2014-11-24
  • oqidiantianxia :
    有参考价值,如果要完全符合自己的要求得修改一下。
    2014-10-16
  • w327115047 :
    效果还可以 ,感谢分享
    2014-06-22

免责申明

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