Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Catch WM_SETFOCUS ?

0 views
Skip to first unread message

jeff

unread,
Oct 31, 2002, 2:38:13 AM10/31/02
to

Hi,
I have created and subclassed a webbrowser control in my project. And I
can catch most message of this browser, such as WM_SIZE... But the
WM_SETFOCUS is an exception, in fact, not all WM_SETFOCUS can not catched.
If I call m_wndBrowser.SetFocus, I can catch the focus message in my
OnSetFocus() implementation. But, if I make the browser contrl refresh, with
a page that has a input box, the browser will get focus without notify my
class. I can see the WM_SETFOCUS is sent to the browser control using Spy.
Is there any way to do that?

Thanks in advance
Jeff

Ehsan Akhgari

unread,
Oct 31, 2002, 3:43:36 AM10/31/02
to
Can't you sink the onfocus event for the desired page element?

--

Ehsan Akhgari

List Owner: MSVC@*NOSPAMWANTED*BeginThread.com

[Email: ehsan@*NOSPAMWANTED*beginthread.com]
[WWW: http://www.beginthread.com/Ehsan ]

0 new messages