|
这是一般的参数配置:
|
幸好CFont给我们封装了另外几个函数,使用起来比较简单。
1.CreatePointFont:
This function provides a simple way to create a font of a specified typeface and point size.
|
创建一个12点大小的宋体字体。
如果我们要加粗或者添加下划线怎么办?
看下面的例子,我只展示了OnPaint处理:
|
|
|
This function provides a simple way to create a font of a specified typeface and point size.
|
|