IHTMLDocument2::get_body()获取到的指针为空
IHTMLDocument2 *pDoc = NULL; m_HtmlEditCtrl.GetDHtmlDocument(&pDoc); if (NULL == pDoc) { return ; } HRESULT hr; CComPtr <IHTMLElement> pBody; hr = pDoc-> get_body(&pBody);