if Message.CmdType and $FFF0 <> SC_MOVE then
showmessage('saf')
上方面的语句可以正确运行。
if Message.CmdType and true then
showmessage('saf')
而此句却产生编译错误:Operator not applicable to this operand type
-------------------------------------------------------------------
在vb中应该不会存在此类错误
showmessage('saf')
上方面的语句可以正确运行。
if Message.CmdType and true then
showmessage('saf')
而此句却产生编译错误:Operator not applicable to this operand type
-------------------------------------------------------------------
在vb中应该不会存在此类错误
{ Private declarations }
procedure WMSysCommand(var Message: TWMSysCommand); message WM_SYSCOMMAND;--------------------------------------------------------
procedure Tform1.WMSysCommand(var Message: TWMSysCommand);
begin
if Message.CmdType and $FFF0 <> SC_MOVE then
inherited;
end;
showmessage('saf')
等下面的
if (Message.CmdType and $FFF0) <> SC_MOVE then
showmessage('saf')