首页  编辑  

显示网页属性对话框

Tags: /超级猛料/OS.操作系统/IE.扩展/TWebBrowser/对话框/   Date Created:

procedure TForm1.Button1Click(Sender: TObject);

var

 eQuery: OLECMDF;

 vaIn, vaOut: OleVariant;

begin

 try

   eQuery := Webbrowser1.QueryStatusWB(OLECMDID_PROPERTIES);

   if (eQuery and OLECMDF_ENABLED) = OLECMDF_ENABLED then

     Webbrowser1.ExecWB(OLECMDID_PROPERTIES, OLECMDEXECOPT_PROMPTUSER, vaIn, vaOut);

 except

 end;

end;