高度:WebBrowser.ClientHeight + WebBrowser.Document.Window.ScrollHeight
宽度:WebBrowser.ClientWidth + WebBrowser.Document.Window.ScrollWidth 

解决方案 »

  1.   

    你没有发送到指定接受的handle,不能只发给webbrower,要发给下级控件,
    不知对不对?  
      

  2.   

    WebBrowser中的Docment无Window属性。
      

  3.   

    1.引入MSHTML库
    2.
    var
    Doc:IHTMLDocument2;
    Win:IHTMLWindow;
    begin
      try
        Doc:= WebBrowser1.Document as IHTMLDocument2;
        Win:= Doc.Window as IHTMLWindow;
        Win.ScrollHeight 高度
        Win.ScrollWidth 宽度
      except
      end;
    end;WebBrowser是三层结构,用Spy++查一下就知道了,向最下层的一个发
      

  4.   

    忘了说:也许 IHTMLWindow 没有ScrollHeight或ScrollWidth属性,看你的IE版本,4.0有,5.0好像就没有
      

  5.   

    Win:IHTMLWindow 不支持,改成IHTMLWindow2 则可以,Win:= Doc.Window as IHTMLWindow
    Doc中无Window属性,ScrollHeight,ScrollWidth 在IE4,IE5都没有!请再指教!