Re: setLocale

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Rob,

(i needed to change my email account, so i have a new nick now)

Thank you for your suggestions. I also figured it out in the
meanwhile. I post my solution here i case somebody else needs it too.

Because IE does not provide any interface Methdods for changing the
prefered language you need to go through "windows-registry-patching"

1. store the original Value of "HKEY_CURRENT_USER\\Software\\Microsoft\
\Internet Explorer\\International\\AcceptLanguage " somewhere
2. change the value of "HKEY_CURRENT_USER\\Software\\Microsoft\
\Internet Explorer\\International\\AcceptLanguage" to for example "de"
3. Call SendMessage(HWND_BROADCAST,WM_SETTINGCHANGE , 0, (LPARAM)
(LPCTSTR)"HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\
\International\\AcceptLanguage"); do notify about the Registry Change
4. Do what ever you want in the browser
5. After finishing the work in the Browser reset the Registry-Value to
the Original Value you stored in 1.

Regards,
Thomas Max

.