3,056
社区成员
发帖
与我相关
我的任务
分享
IHTMLElement *pElement = NULL;
m_pHtmlDocument->elementFromPoint(pt.x, pt.y, &pElement);
IHTMLElement2 *pElem2 = NULL;
_bstr_t bstrVal;
HRESULT hr = 0;
pElement->QueryInterface(IID_IHTMLElement2, (void**)&pElem2); //得到IHTMLElement2接口
hr = pElem2->getAdjacentText(_T("beforeBegin"), &bstrVal.GetBSTR());