定义消息接收类
type
TMyMessageHandler = class(TBizMessageHandler)
private
FMemo: TMemo;
public
procedure DoExecute(AMessage: TBizMessage; const AParam: THandleParam;
var Handled: Boolean); override;
end;
procedure TMyMessageHandler.DoExecute(AMessage: TBizMessage; const AParam: THandleParam;
var Handled: Boolean);
begin
if AMessage is TMyMessage then
begin
FMemo.Lines.Add((AMessage as TMyMessage).msg);
Handled := True;
end;
end;