我刚完成一个国际化的网络应用程序,我是这样做的.
1:思路,UI的国际化分为两个部分,菜单和其它资源.
2:国际化的工作也就分为两个部分,菜单资源的ReLoad和其它UI(文本)的Reload.
3:菜单的ReLoad使用下面的函数(我的风格尽量不用MFC),菜单可以直接在资源文件.rc
中编辑.
BOOL ChangeMenu()
{
//////////////////////////////////////////////
//////It's difficult to change the menu///////
/////It's important to set m_hMenuDefault/////
/////to hNewMenu.First,I haven't do this,/////
/////error will occur whenever the window/////
/////be closed.The reason is,memory address///
////will change if HMENU changed.Yet,I can////
///////not find any information about ////////
///////m_hMenuDefault in Help document////////