文字垂直居中、根据控件大小自动缩小字体的Static

上传者: keyon11 | 上传时间: 2022-07-25 14:13:20 | 文件大小: 137KB | 文件类型: RAR
继承mfc的static类,实现可设置字体、字体大小、粗体、斜体,文字在水平方向和垂直方向上居中显示;而且还能根据控件大小自动缩小文字大小以防止文字出界显示不全。但目前还存在bug:若设置为粗体显示,文字显示还是可能出界。

文件下载

资源详情

[{"title":"( 22 个子文件 137KB ) 文字垂直居中、根据控件大小自动缩小字体的Static","children":[{"title":"TestStatic","children":[{"title":"TestStatic.suo <span style='color:#111;'> 24.00KB </span>","children":null,"spread":false},{"title":"TestStatic.sln <span style='color:#111;'> 897B </span>","children":null,"spread":false},{"title":"TestStatic","children":[{"title":"resource.h <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"TestStatic.vcxproj <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false},{"title":"MyStatic.cpp <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"TestStatic.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"TestStatic.h <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"TestStatic.vcxproj.filters <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"MyStatic.h <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"TestStatic.aps <span style='color:#111;'> 103.59KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"TestStatic.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"TestStatic.rc2 <span style='color:#111;'> 676B </span>","children":null,"spread":false}],"spread":false},{"title":"TestStatic.cpp <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"TestStaticDlg.cpp <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false},{"title":"VcCommon.cpp <span style='color:#111;'> 7.03KB </span>","children":null,"spread":false},{"title":"VcCommon.h <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"TestStatic.rc <span style='color:#111;'> 10.11KB </span>","children":null,"spread":false},{"title":"TestStaticDlg.h <span style='color:#111;'> 682B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 234B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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