开发者

set browser locale in Internet Explorer programmatically

Is there a way to set the Internet Explorer locale (accepted languages) programmatically. I have a small application which is embedding Internet Explorer and I would like to give the use the possibility to change the locale when clicking a simple button.

Is there a开发者_如何转开发 way besides tweaking registry and calling

SendMessageTimeout(HWND_BROADCAST,WM_SETTINGCHANGE , 0, ...);


Yes - when you embed IE (Actually MSHTML), you can change the registry entries used for just that instance. This is done by a callback to your IDocHostUIHandler::GetOptionKeyPath Method


Unfortunately not -- IE pulls its settings directly from the registry.


Just a suggestion but it might make more sense to use a rendering engine better suited to embedded such as webkit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜