我是指全部大小,包括显示器上可见的部分,和需要用滚动条才能看见的部分的整个的大小。多谢了,牛人们!

解决方案 »

  1.   

    pDoc->get_body(&pElement); IHTMLBodyElement* pBody;
    pDoc->QueryInterface(IID_IHTMLBodyElement,(void**)&pBody); if( pBody == (IHTMLBodyElement*)NULL)
    {
    AfxMessageBox("NULL");
    }//可是我用上面方法的方法得到的pBody始终是空的啊。另外,IHTMLBodyElement好像有个get_scroll,还有一些margin.你是说用get_scroll吗?
      

  2.   

    IHTMLElement2::scrollHeight 
    IHTMLElement2::scrollWidth 
    P.S.不要用pDoc来QueryInterface……