fpc/tests/webtbs/tw6203.pp
peter 172413fd09 * inheritance based on message also needs to find hidden
private methods

git-svn-id: trunk@4024 -
2006-06-30 21:06:49 +00:00

29 lines
398 B
ObjectPascal

{$mode delphi}
uses
uw6203;
type
TDerived = class(TTest)
private
procedure CMTest(var Msg: TMessage); message CM_TEST;
end;
procedure TDerived.CMTest(var Msg: TMessage);
begin
inherited;
WriteLn('TDerived.CMTest');
end;
var
Test: TTest;
Msg: TMessage;
begin
err:=true;
Test := TDerived.Create;
Msg.Msg := CM_TEST;
Test.Dispatch(Msg);
if err then
halt(1);
end.