关于消息的返回值的问题!!!(20分)

S

sunman

Unregistered / Unconfirmed
GUEST, unregistred user!
我做了一个小程序使窗体不最大化,部分代码如下:
private
procedure max(var msg:Twmsyscommand);message wm_syscommand;

implementation
{$R *.dfm}
procedure tform1.max (var msg:Twmsyscommand);
begin
if msg.CmdType <>sc_maximize
then inherited;
{ if msg.CmdType =sc_maximize
then msg.Result :=0
else inherited;}
end;
在上面的有二种方法都可以实现拦截wm_syscommand并且运行的效果是一样的,
是只我想问:第二种方法(注解里的)的msg.Result:=0;有什么作用??据说,它
是消息的返回值但不知道是干什么用的??
请各位高手指点!!
 
没有人对精通消息处理吗??
 
高手们!没人可以搞定呀??
 
Result:=0表示不让别人处理了,Result:=1表示后面的可以继续处理
 
顶部