Re: setLocale
- From: tmax_dev@xxxxxxxx
- Date: Wed, 18 Jul 2007 00:02:28 -0700
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
.
- References:
- setLocale
- From: lemax
- Re: setLocale
- From: Rob ^_^
- setLocale
- Prev by Date: Re: Is it impossible to REALLY remove IE from Windows?
- Next by Date: RE: Auto proxy configuration problem
- Previous by thread: Re: setLocale
- Next by thread: Re:IE7 Not using my host file
- Index(es):