vb很难完成
webbrowser可以QueryInterface出ICustomDoc接口,然后用ICustomDoc::SetUIHandler安装IDocHostUIHandler 借口,编程实现IDocHostUIHandler::ShowContextMenu接口即可
IHTMLElement *pElem;
HRESULT hr;hr = pdispObject->QueryInterface(IID_IHTMLElement, (void**)pElem);
if(SUCCEEDED (hr))
{
BSTR bstr;
pElem->get_tagName(bstr);
USES_CONVERSION;
ATLTRACE("TagName:%s\n", OLE2T(bstr));
SysFreeString(bstr);
pElem->Release();
}
webbrowser可以QueryInterface出ICustomDoc接口,然后用ICustomDoc::SetUIHandler安装IDocHostUIHandler 借口,编程实现IDocHostUIHandler::ShowContextMenu接口即可
IHTMLElement *pElem;
HRESULT hr;hr = pdispObject->QueryInterface(IID_IHTMLElement, (void**)pElem);
if(SUCCEEDED (hr))
{
BSTR bstr;
pElem->get_tagName(bstr);
USES_CONVERSION;
ATLTRACE("TagName:%s\n", OLE2T(bstr));
SysFreeString(bstr);
pElem->Release();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货