简化后的CFontDialog只能看到字体大小?或更好的用户界面. [英] Simplified CFontDialog to only be able to see the font size ? or better UI for that.

查看:121
本文介绍了简化后的CFontDialog只能看到字体大小?或更好的用户界面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的应用程序中,我们使用专用字体(对于 GD&T [

谢谢.

您可以查询已安装字体的信息,就像对话框一样.

本质上,您将通过字体表中的各个分支进行枚举,以找到所需的信息.

有关如何入门的信息,请参见以下文章.
EnumFonts函数


In our application, we use a specialized font (for GD&T[^])

We''d like to be able to remove/disable the part of the CFontDialog that we do not want (font list, font style, ... ) and just keep the font size list.

I know that removing UI element will not make the dialog nice, so that would teh last resort.

Another question, is there a way to query the available font size for a specific font ? or is that list "hard-coded" ? I could just use a custom UI with a list of sizes instead of calling the font dialog.


Thanks.

解决方案

You can query information on the installed fonts, just as the the dialog does it.

You will essentially enumerate through various branches in the font tables to find the information you seek.

See the following article for information on how to get started in this.
EnumFonts function


这篇关于简化后的CFontDialog只能看到字体大小?或更好的用户界面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆