3,055
社区成员
发帖
与我相关
我的任务
分享
IHTMLDocument2 *pDocument = NULL;
pDocument = (IHTMLDocument2*)m_ie.GetDocument();
if(pDocument)
{
IHTMLWindow2 *pWindow = NULL;
if(SUCCEEDED(pDocument->get_parentWindow(&pWindow)) && pWindow)
{
try
{
pWindow->scrollBy(page.m_scrollH, page.m_scrollV); //此处异常
}
catch (CMemoryException* e)
{
}
catch (CFileException* e)
{
}
catch (CException* e)
{
}
pWindow->Release();
}
pDocument->Release();
}