Hi all,
Thanks for your guidence...
>Another way, as shown by Paul Dilaschia might work for you. He
>discussed it few years ago in MSDN:
>http://msdn.microsoft.com/msdnmag/issues/01/09/c/default.aspx
>He simply subclasses the IE window and traps some messages. I suspect
>it will do what you are looking for.
I have looked that example it was something i was looking for... But
.... My primary concern is to display MS Office documents and PDF
document. I have tried to load such documents And they were loaded but
was getting crashed In d'tor.... ?
Another thing that also teasing me. that is i have looked another
article in msdn titled "Loading HTML content from a Stream " .... i
also have document data ( .doc,.xls,.ppt,.pdf) in CHAR* then i am
trying to convert it into HGLOBAL and with trying to display data with
help of IPersistanceStreamInit() & Load() ... It works fine For HTML
stream.. as shown in above article..... But when i tried to load .doc
(and other) it shows their binary form (with junk header)
Can u tell me why is it so?
How can i display such streams same way as IE does?
Do i have to use anther interface other then idispath
/ipersistence....?
>There are couple of ways to do it. One is to use IE/IWebBrowser2's
>object model. This is what you have mentioned and requires using COM.
>---------
>Ajay Kalra
> XXXX@XXXXX.COM
How to go further in above method as this can give me some com
knowledge...
Once again thanks for yr guidence.
Jetli
>Jay Chadderwala wrote:
> 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