Einzelnen Beitrag anzeigen

knochen

Registriert seit: 26. Aug 2009
81 Beiträge
 
Delphi 2006 Professional
 
#6

AW: TApplication.Processmessage

  Alt 27. Mai 2013, 11:31
Wie sieht's denn damit aus?

Delphi-Quellcode:
  TMyApplication = class(TApplication)
  public
    function ProcessMessage(var Msg: TMsg): Boolean;
  end;

...

{ TMyApplication }

function TMyApplication.ProcessMessage(var Msg: TMsg): Boolean;
begin
  inherited;
end;


Aufruf:

procedure TForm1.Button1Click(Sender: TObject);
var
  Msg: TMsg;
begin
  TMyApplication(Application).ProcessMessage(Msg);
end;
A fool with a tool remains a fool.
  Mit Zitat antworten Zitat