offers all the data returned by SystemPa - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
This sample provides a handy little class that offers all the data returned by SystemParametersInfo when used with SPI_GETNONCLIENTMETRICS. This includes the standard border width for forms, the height or width of horizontal or vertical scrollbars, the height of standard and small captions, and a few other metrics. But, perhaps most interesting of all, it shows how to convert a LOGFONT structure to a StdFont object. You'll be able to immediately assign Message, Caption, or Menu fonts to your controls by just instantiating this class and referencing the appropriate property.
这个例子提供的一个方便的类封装了在SPI_GETNONCLIENTMETRICS中SystemParametersInfo 返回的所有数据。这包括标准的边界宽度、水平或垂直滚动条的高度或宽度,标准小标题的高度,以及一些其它度量。但,最有趣的或许是如何将一个LOGFONT 结构转换为一个StdFont 对象。你可以立即分配一个消息、标题或菜单字体为你的控件,只需要实例化这个类,并引用适当的属性。
来源: http://www.mvps.org/vb/ |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
NCMetrics |
 1.0  |
2004-04-18 |
下载 |
|
|