Question

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, ...);

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top