基于MFC对话框的应用程序中的语言区域设置 [英] Language Locale in MFC dialog based application

查看:285
本文介绍了基于MFC对话框的应用程序中的语言区域设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于对话框的应用程序,该应用程序具有一些用于选择区域"的选项.例如美国,英国,韩国.当用户选择一个选项时,对话框标签和按钮消息应以该语言显示.
我没有在做,也没有任何想法...
请给我一些有关如何执行此操作的想法?是否有用于语言的dll?

在此先谢谢您.

I have dialog based application that have some options to choose the Region. For Example US, UK, Korea. When user choose an Option than the dialog box labels and buttons message should be display in that language.
I am not working on it and don''t have any idea...
Please give me some idea about how to do this? Is there any dlls for language ??

Thanks in advance.

推荐答案

请查看以下文章以获取帮助:
使用纯资源DLL的MFC应用程序本地化库 [使用精简框架进行用户界面本地化 [
Have a look at these articles to get some help:
Library for MFC applications localization using resource-only DLLs[^]
User Interface Localization with the Compact Framework[^]

Surely, do wait for some C++ expert to guide you further.


此代码可能会对您有所帮助

This code may help you

 LOGFONT lfIcon;
 VERIFY(::SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(lfIcon), &lfIcon, 0));
 lfIcon.lfWeight = FW_NORMAL;
 lfIcon.lfItalic = FALSE;
 VERIFY(m_pPaintManager->GetItemMetrics()->m_font Normal.CreateFontIndirect(&lfIcon));
CFont fntNormal;
fntNormal.CreateFontIndirect(&lfIcon );

this.SetFont(&fntNormal);



此代码将本地计算机的字体设置为您的对话框,可能会帮助您.
请尝试我还有一个解决方案.



this code set the font of local machine to your dialog may hepl you.
Just try i have one more solution.


这篇关于基于MFC对话框的应用程序中的语言区域设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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