如何接受SendMessage发送的自定义附加消息?
在一个公共模块中定义了
TFormInfo = record
FFormClass : TFormClass;
Ffm : TComponent;
FFormCaption : String;
end;
在FORM2中发送消息
var
fi: TFormInfo;
begin
fi.FFormClass := TForm3;
fi.Ffm := form3;
fi.FFormCaption := 'Form3';
sendmessage(form1.handle, wm_user+1, 0, lparam(fi));
end;
在Form1中如何接收FORM2发送过来的自定义附加消息?