你好〜我怎么做像charmap.exe这样的程序 [英] Hello~ how can I make program like charmap.exe

查看:73
本文介绍了你好〜我怎么做像charmap.exe这样的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全世界的大家好〜我是韩国的学生,是编程的新手.
今天,我的教授给了我很大的帮助,他们必须制作像Windows charmap.exe这样的程序
我如何使用MFC做到这一点.你能给我一些建议或帮助吗?
谢谢〜

解决方案

可以从CreateFont API开始.


首先要枚举系统中的所有字体. . Microsoft倾向于将枚举函数命名为"Enum *",因此对该函数的一个很好的猜测是 解决方案

You could start with the CreateFont API.


You start by enumerating all fonts in the system. Microsoft tend to name enumerating functions ''Enum*'' so a good guess for this function would be EnumFonts[^]. Populate a combobox or a list with the font names you get, and let the user select one. When the selection changes, you set that font to your device context, and draw whatever set of characters you are interested in.


这篇关于你好〜我怎么做像charmap.exe这样的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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