偶用下面两种方法都不行,偶滴是delphi7。
1)、IHTMLBodyElementDisp(IHTMLDocument2(WebBrowser1.document).body).scroll:= 'no';
2)、WebBrowser1.oleobject.Document.body.Scroll := 'no';
注:第一种方法需要在uses部分加上MSHTML_TLB或者MSHTML。郁闷啊郁闷。
求达人帮忙
谢谢了先
1)、IHTMLBodyElementDisp(IHTMLDocument2(WebBrowser1.document).body).scroll:= 'no';
2)、WebBrowser1.oleobject.Document.body.Scroll := 'no';
注:第一种方法需要在uses部分加上MSHTML_TLB或者MSHTML。郁闷啊郁闷。
求达人帮忙
谢谢了先
const pDisp: IDispatch; var URL: OleVariant);
begin
if Assigned(WebBrowser1.Document) then
WebBrowser1.OleObject.Document.Body.Scroll := 'no';
end;