Re: How to catch web page script "moveto()" in CHtmlView?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 04/26/04


Date: Mon, 26 Apr 2004 09:37:44 -0400


"jeff" <bloodchen@hotmail.com> wrote in message
news:uJuipiuKEHA.1272@tk2msftngp13.phx.gbl
> I followed your instruction and set a breakpoint at my
> CWebBrowser2::PreTranslateMessage function. But it seems the
> WM_WINDOWPOSCHANGING never comes to this function.

It's not supposed to. Only posted messages go through the message loop
and are subject to pretranslation. WM_WINDOWPOSCHANGING is sent.

> How do you catch
> it?

I do believe I have mentioned "subclassing" before, haven't I? See
CWnd::SubclassWindow

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Relevant Pages