WebBrowser AND Internet Options
-
On Sep 22 I put up this query, but without getting any answer: I have the webbrowser in a program but want also to access the equivalent of this functionality: internet explorer: Tools/internet options/general/fonts/language script I expect it is not something exposed in the webbrowser, but otherwise. Does anyone know how it can be done ? SINCE then I have found how to do it, and since it is relatively straightforward, I am surprised not to get any answer. The solution is given in the Microsoft book, Programming the Internet Explorer. It all hinges on the lines: hr=lpDispatch->QueryInterface(IID_IOleCommandTarget, (void**)&lpOleCommandTarget); hr=lpOleCommandTarget->Exec(pguidCmdGroup,nCmdID,0,NULL,NULL); where nCmdID =3 if you want the Internet Options. If you are interested you will find all the details in the book. Raymond Mercier
-
On Sep 22 I put up this query, but without getting any answer: I have the webbrowser in a program but want also to access the equivalent of this functionality: internet explorer: Tools/internet options/general/fonts/language script I expect it is not something exposed in the webbrowser, but otherwise. Does anyone know how it can be done ? SINCE then I have found how to do it, and since it is relatively straightforward, I am surprised not to get any answer. The solution is given in the Microsoft book, Programming the Internet Explorer. It all hinges on the lines: hr=lpDispatch->QueryInterface(IID_IOleCommandTarget, (void**)&lpOleCommandTarget); hr=lpOleCommandTarget->Exec(pguidCmdGroup,nCmdID,0,NULL,NULL); where nCmdID =3 if you want the Internet Options. If you are interested you will find all the details in the book. Raymond Mercier
-
Yes, that's it: Programming Microsoft Internet Explorer 5 (Microsoft Programming Series) (Paperback,)by Scott Roberts The material you need is on pp.259-262. Although the book was written for IE5, and I am now using IE6, and Visual Studio 6 & 7, the code does not need to be changed, not even the GUID for CGID_WeBrowser. Raymond