开发者

What is window message for a loaded website in Internet Explorer?

开发者 https://www.devze.com 2023-01-02 07:34 出处:网络
I am currently have this message handler line: MESSAGE_HANDLER(`WM_SETREDRAW`, onSetRedraw) I would like开发者_如何学C to know, is there any window message (eg: WM_???) that is connected/related to

I am currently have this message handler line:

MESSAGE_HANDLER(`WM_SETREDRAW`, onSetRedraw)

I would like开发者_如何学C to know, is there any window message (eg: WM_???) that is connected/related to 'when a website has finish loading inside IE' ?

So I can use it to replace the above WM_SETREDRAW. I want to do something like, when the IE finish loaded a website, it call onSetRedraw.


If no one answers, go Gogoling for an application "spy" tool, which will tell you which messages your program receives. Make a one line app which one launches the browser and spy on that.

Alternatively, what API are you using to launch the browser? Look at it's return value.

Btw, I strongly suspect that you will only get a message when the browser is launched, not every time it loads a new page (or even the first page).

You may not be able to do what you want very easily. A possibility might be to search for the window by title bar, get it's handle, walk its control list until you get to the status bar and check its text in a loop until it is done.

A further possibility, if this is only for yourself, woudl be to get an open source browser which uses the MSIE rendering engine and make a one line change at "the right place in the code" to send a message to your app every time a new page is loaded.

0

精彩评论

暂无评论...
验证码 换一张
取 消