我使用WinAPI MessageBox向用户显示信息。
它使用按钮的本地翻译。有没有办法获得本地翻译"信息","错误","确认"和"问题"?
也许任何DLL,我可以从...获取资源字符串?
在user32.dll中,我发现"是","否","确定","取消"以及 - 更多 - 但没有#34;信息","错误","确认"和"问题"。
答案 0 :(得分:1)
User32 does contain the string for "Error" (resource id 2 on my machine), it is used when the title parameter is NULL.
Even if it did contain the other strings it would not be a good idea to use them because the resource identifiers are not documented and could change in the future.
Because you need to provide the translation for the main text you might as well just provide your own translations for the title as well...