Registriert seit: 26. Aug 2009
81 Beiträge
Delphi 2006 Professional
|
AW: TApplication.Processmessage
27. Mai 2013, 12: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.
|