Want to capture Event from MS Web browser (shdocvw.dll)

From: Jay Chadderwala (jay.chadderwala_at_emsure.com)
Date: 02/02/05


Date: 2 Feb 2005 06:01:09 -0800

Hi all,

I am new to ole/com. I have dialog based application in which i have
inserted shdocvw.dll activex component. I can load html,doc,and other
documents. via

m_shBrowser.Navigate((LPCTSTR)m_sPathUrl , &vtEmpty, &vtEmpty,
&vtEmpty, &vtEmpty);

It loads succesfully. ( if i open .doc file then winword.exe is loaded
in task manager. ?)

Now I want to caputure LBUTTONDOWN,RBUTTONDOWN, MOUSEMOVE message....

I have tried with message map macros .... IT Works when there is no
document loaded. But when i load/open any document then I am not able
to get any of above message. i have tried with DefWindowProc() handler
also but with no luck.

I have searched on net but havent found reason WHY?

and also not found how to do above.

Can anyone guide me how to capture above and such messages?

i dont want to display mouse when it is on the browser control.... and
also not want to generate default menu.. instead display my menu....
can anyone point how can i implement?

do i have to create ole eventsink? if so then how?

Thank in advance.

Jetli