MFC AfxMessageBox show in English


AfxMessageBox(L"Test", MB_YESNOCANCEL | MB_ICONQUESTION);

enter image description here

I want this text on the button in English.

1. I’ve alread created the project with Engilsh Language option in the wizard.

enter image description here

2. I modified the .rc file language section:

/////////////////////////////////////////////////////////////////////////////

// Chinese (Simplified, China) resources

//#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) //LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

It’s still in Chinese. Do I have to change my PC to English? I don’t think so.

Leave a Reply

Your email address will not be published. Required fields are marked *