You can browse the source of the control here:
http://lxr.mozilla.org/mozilla/source/embedding/browser/activex/src/control/
Dave Murray Glasgow, UK PGP KeyID: 0x838592B3
Remove NOSPAM from my email address to reply.
Jamie S wrote:
Hi, Ive posted this on the microsoft C++ forum but thought Id also post here as Im sure its a because im using the Mozilla control.
Ive overridden the default context menu fine using showContextMenu, and have been able to obtain then context of the right click (link, image etc). However, on trying to gain the URL of the anchor/link upon a right click my program will crash. I use the queryinterface function as below and wonder if its supported in the mozilla control or not as ive narrowed it down to here where it crahses. A code snippet is below.
HRESULT FAR EXPORT CCustomControlSite::XDocHostUIHandler::ShowContextMenu(
DWORD dwID, POINT* /*pptPosition*/,
IUnknown* /*pCommandTarget*/,
IDispatch *pdispReserved)
{
METHOD_PROLOGUE(CCustomControlSite, DocHostUIHandler)
if (dwID == 6) //works fine { IHTMLAnchorElement *pElem = NULL; BSTR bstrURL; pdispReserved->QueryInterface(IID_IHTMLAnchorElement,(void**)(&pElem)); } else AfxMessageBox("Default Menu");
return S_OK; // } }
_______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
