type
TBeforeChoicePackage = packed record
Desc: string;
DefFlag: string;
end;
PBeforeChoicePackage = ^TBeforeChoicePackage;
var
BeforeChoicePackage: TBeforeChoicePackage;
PostMessage(Handle, WM_MESSAGE, LongInt(@BeforeChoicePackage), 0);
procedure TObject.WmMessage(var Message: TMessage);
var
BeforeChoicePackage: TBeforeChoicePackage;
begin
BeforeChoicePackage := TBeforeChoicePackage( Message.wParam^ );
...
end;
差不多就是上面的样子