你好〜我怎么做像charmap.exe这样的程序 [英] Hello~ how can I make program like charmap.exe
本文介绍了你好〜我怎么做像charmap.exe这样的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
全世界的大家好〜我是韩国的学生,是编程的新手.
今天,我的教授给了我很大的帮助,他们必须制作像Windows charmap.exe这样的程序
我如何使用MFC做到这一点.你能给我一些建议或帮助吗?
谢谢〜
解决方案
可以从CreateFont
API开始.
首先要枚举系统中的所有字体. . Microsoft倾向于将枚举函数命名为"Enum *",因此对该函数的一个很好的猜测是 ^ ].用获得的字体名称填充组合框或列表,然后让用户选择一个.当选择更改,设置字体为您的设备上下文,并绘制任何字符集你有兴趣块引用>
Hello everybody in the world~ I''m student in Korea and I''m novice at programming.
today my professor give me assingment which have to make program like windows charmap.exe
how can I make this using MFC. could you give me some advice or help?
thank you~解决方案You could start with theCreateFont
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屋!
查看全文