Launch IE in a control?

I have a dialog, which has a static and a button control.

when I pressed the button, I want to launch internet explore in my static control.

And I did like this.

::ShellExecuteA(mystatic.m_hWnd, "open", "", NULL, NULL, SW_SHOWNORMAL);

However, the IE is not in my static control, it's opened with new IE window.

How to do that??

ShellExecute() is for starting a new process, as you've found out. I posted here a long time ago, maybe a year and a half or so, an axample of using the "Shell.Explorer" ActiveX Control, which is essentially Internet Explorer. Its likely beyond you, but you can study it if you want to persue it. I'll see if I can find the link to it ....
Here's the link ...

All the code is there to do exactly what you want, but when you see it its my guess you'll rapidly change your mind. The code is quite a few replies in on another COM related post.
Last edited on
Thanks. freddie1.
your link is probably what i am looking for.
It looks quite difficult for me to understand though. :)
Topic archived. No new replies allowed.