获取对话框当前cfont,基于MFC对话框的应用程序中的语言区域设置

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.

解决方案

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值