How to close a Internet explorer from an external app
A Internet explorer window is open
I want to know 2 things...
1) How to close it from an external app ??
2) If that HTML page cotains a control(say Edit Box)..how to retrive it's handle ??
Give detailed source code as I'm new to COM.
I have a small idea that I should use IWebBrowser2 interface. I want to know how I would get the pointer to opened window.
Re: How to close a Internet explorer from an external app
Quote:
Originally posted by Ram_Gupta
I want to know how I would get the pointer to opened window.
CWnd* pwndIECodeGuru = CWnd::FindWindow( "CodeGuru - Internet Explorer", NULL );
This will give you a pointer to the window that has as title "CodeGuru - Internet Explorer".
Good Luck.