How to catch the message of right click in IE
-
Hi all,I want to use bho to catch the message of mouse right click.It seems there exists one way: Using ATL.I followed MSDN:rewrite SetSite,and then assign FindConnectionPoint,then advise,at last catch events to invoke,the following is example codes in invoke(): switch (dispidMember) { case DISPID_HTMLELEMENTEVENTS_ONCLICK: CComPtr< IDispatch > pDisp; IHTMLDocument2*pHTMLDoc; mWebBrowser2->get_Document(&pDisp); if (pDisp!=NULL) { pDisp->QueryInterface(IID_IHTMLDocument2, (void**)&pHTMLDoc); pHTMLDoc->elementFromPoint(myPoint.x,myPoint.y,&pElement); } ... } But,how can I know myPoint,where can I get it?
-
Hi all,I want to use bho to catch the message of mouse right click.It seems there exists one way: Using ATL.I followed MSDN:rewrite SetSite,and then assign FindConnectionPoint,then advise,at last catch events to invoke,the following is example codes in invoke(): switch (dispidMember) { case DISPID_HTMLELEMENTEVENTS_ONCLICK: CComPtr< IDispatch > pDisp; IHTMLDocument2*pHTMLDoc; mWebBrowser2->get_Document(&pDisp); if (pDisp!=NULL) { pDisp->QueryInterface(IID_IHTMLDocument2, (void**)&pHTMLDoc); pHTMLDoc->elementFromPoint(myPoint.x,myPoint.y,&pElement); } ... } But,how can I know myPoint,where can I get it?
pDispParams
parameter ofIDispatch::Invoke
would have that infromation.Prasad Notifier using ATL | Operator new[],delete[][^]
-
pDispParams
parameter ofIDispatch::Invoke
would have that infromation.Prasad Notifier using ATL | Operator new[],delete[][^]
I have the same question. Could you pls let me know how to get the point from DISPPARAMS* pDispParams