5.4 Delphi的消息系统
V C L替你处理了许多Wi n d o w s消息系统的细节。例如,消息循环己经封装到V C L的F o r m s单元,因
此,用不着考虑怎样从消息队列中检索消息然后再把它指派给某个窗口。D e l p h i还把Wi n d o w s的T M s g记录中的信息映射为T M e s s a g e记录:type
TMessage=record
Msg:Cardinal;
case Integer of
0:(
WParam:Longint;
LParam:Longint;
Result:Longint);
1:(
WParamLo:Word;
WParamHi:Word;
LParamLo:Word;
LParamHi:Word;
ResultLo:Word;
ResultHi:Word);
end;
----节选自《Delphi 5 开发人员指南》这里面说的映射是什么意思?
V C L替你处理了许多Wi n d o w s消息系统的细节。例如,消息循环己经封装到V C L的F o r m s单元,因
此,用不着考虑怎样从消息队列中检索消息然后再把它指派给某个窗口。D e l p h i还把Wi n d o w s的T M s g记录中的信息映射为T M e s s a g e记录:type
TMessage=record
Msg:Cardinal;
case Integer of
0:(
WParam:Longint;
LParam:Longint;
Result:Longint);
1:(
WParamLo:Word;
WParamHi:Word;
LParamLo:Word;
LParamHi:Word;
ResultLo:Word;
ResultHi:Word);
end;
----节选自《Delphi 5 开发人员指南》这里面说的映射是什么意思?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货