Advertisement
TLama

Untitled

Jul 3rd, 2013
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.54 KB | None | 0 0
  1. type
  2.   TMyWebBrowser = class(SHDocVw.TWebBrowser)
  3.   protected
  4.     procedure InvokeEvent(DispID: TDispID; var Params: TDispParams); override;
  5.   end;
  6.  
  7. implementation
  8.  
  9. { TMyWebBrowser }
  10.  
  11. procedure TMyWebBrowser.InvokeEvent(DispID: TDispID; var Params: TDispParams);
  12. begin
  13.   if DispID = 259 then
  14.   begin
  15.     // DocumentComplete event (don't forget to call "inherited;",
  16.     // if you want to fire the default OnDocumentComplete event)
  17.     // Params[0] {const IDispatch}
  18.     // Params[1] {const OleVariant}
  19.   end
  20.   else
  21.     inherited;
  22. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement