我看过一个控制ie的saveas的例子,它是先找出ie的saveas对话框的handle,然后还可判断用户是否<br>按了保存按钮呢。<br><br> DialogHWnd := FindWindow('#32770', '保存 Web 页');<br> if DialogHWnd > 0 then<br> begin<br> if (GetParent(DialogHWnd) = Application.MainForm.Handle) and IsWindow(DialogHWnd) then<br> begin<br> Timer.Enabled := False;<br> SavedFileName := '';<br> WasSaved := False;<br> NewWndProc := MakeObjectInstance(NewWndMethod);<br> OldWndProc := Pointer(SetWindowLong(DialogHWnd,<br> GWL_WNDPROC,<br> Longint(NewWndProc))<br> );<br> end;<br> end;<br>