Einzelnen Beitrag anzeigen

Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.173 Beiträge
 
Delphi 10.4 Sydney
 
#3

Re: IHTMLDocument2 implementieren

  Alt 30. Sep 2005, 12:51
Das mit den 40 Methoden wäre nicht das Problem.

Aber mir ist im Moment nicht klar was ich tun muß damit das ActiveX-Control mitbekommt das mein
TPanel dieses Interface implementiert. Reicht es aus das ich.

Delphi-Quellcode:
type
  TMyWrapper = class(TPanel, IHTML2Document)
  private
    FActiveXControl: TSpecialActiveX;
    ...
  public
    constructor Create(AOwner: TComponent); override;
    ...
  end;

constructor TMyWrapper.Create(AOwner: TComponent);
begin
  FActiveXControl := TSpecialActiveX.Create(self);
  // Weis FActiveXControl jetzt schon das ich IHTML2Document implementieren?
end;
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat