[Gtk-sharp-list] Embedding an IE window in a GTK Application *SOLUTION
Phillip Dyer
p85dyer at gmail.com
Thu Feb 8 14:48:50 EST 2007
All,
I found a solution to embedding an IE Window in a GTK Application.
It's fairly trival to me now but it took me awhile to figure out what to
do. Here's the most important lines to implement it:
=====================================
SHDocVw.InternetExplorer ie = new
SHDocVw.InternetExplorerClass();
ie.RegisterAsBrowser = true;
SHDocVw.IWebBrowserApp wb = (SHDocVw.IWebBrowserApp)ie;
Gdk.Window b = Gdk.Window.ForeignNew((uint)wb.HWND);
//Create the IE window as a GDK.Window
b.Reparent(this.GdkWindow,0,0);
//Parent the IE GDK Window with the controls GDK Window
b.Show();
//Show the IE GDK Window.
=====================================
Hope that helps anyone else who might be looking use IE with GTK.
-Phil
More information about the Gtk-sharp-list
mailing list