Re: How to catch web page script "moveto()" in CHtmlView?
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 04/20/04
- Next message: Igor Tandetnik: "Re: Document length in WebBrowser"
- Previous message: Igor Tandetnik: "Re: How to turn-off the IE toolbar within the program"
- In reply to: Su Wei: "How to catch web page script "moveto()" in CHtmlView?"
- Next in thread: Su Wei: "Re: How to catch web page script "moveto()" in CHtmlView?"
- Reply: Su Wei: "Re: How to catch web page script "moveto()" in CHtmlView?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Apr 2004 17:13:06 -0400
"Su Wei" <suwei@sina_com> wrote in message
news:O81MB5qJEHA.2844@TK2MSFTNGP10.phx.gbl...
> Now I notice if a web page cotains script call self.moveto such as
> http://images.sohu.com/cs/button/nec/bj4-155/frpopunder.html, the app
> contains the browser control will do something annoying. IE and MFCIE
will
> flash to back, driller will place the control to topleft(0,0). How can
I get
> rid of this behavior in my mdi chtmlview app?
> I've tried WM_WINDOWPOSCHANGING and OnPosRectChange but failed. Maybe
some
> code detail needed. thanks.
I successfully use WM_WINDOWPOSCHANGING to handle moveTo, resizeTo and
resizeBy calls. Note that the message is sent to the window owned by
WebBrowser control, not to any of yours. You need to subclass the
control's window to intercept the message.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
- Next message: Igor Tandetnik: "Re: Document length in WebBrowser"
- Previous message: Igor Tandetnik: "Re: How to turn-off the IE toolbar within the program"
- In reply to: Su Wei: "How to catch web page script "moveto()" in CHtmlView?"
- Next in thread: Su Wei: "Re: How to catch web page script "moveto()" in CHtmlView?"
- Reply: Su Wei: "Re: How to catch web page script "moveto()" in CHtmlView?"
- Messages sorted by: [ date ] [ thread ]