Thank you for your response!
I tried Spy++ on IE window and found a WM_SETTINGCHANGE message was sent to
the IE window after hitting OK button.
I used the following code to sent this message in my program (some of the
parameters are not listed):
USER32.SendMessageTimeout(pHWnd, (uint)USER32.WM_SETTINGCHANGE, pwParam,
plParam, USER32.SendMessageTimeoutFlags.SMTO_BLOCK,
5000, out pResult);
According to the descritption on MSDN for SendMessageTimeout method, this
message should be sent to all top-level window, but when I use Spy++ to
monitor one of the IE window, I found it didn't received this message. I
don't know why.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Andy,
I would use Spy++ and monitor the messages that are sent to the
webbrowser control when you make the change and hit OK to the dialog. I
would be willing to bet that a windows message is sent to all top level
windows which indicates that a change has occured. Spy++ will help you
determine what it is.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Andy Chen" <pp****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... Hi,
I am using AxWebBrowser control and I met a problem. I need to browse
several different languages page. I have to change the default IE
language setting at runtime.
This can be done by change the key value of
HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\International\AcceptLanguage. But the new setting won't apply to
the current AxWebBrowser control instance unless I close and reopen the
program or hit the OK button on IE Internet options dialog. Anyone have
any ideas on this?
Thanks very much!
Andy