TWMMouse定义为record类型用来记录鼠标消息

解决方案 »

  1.   

    TO bluetooth_2001
    POS,RESULT是什么意思呢???
      

  2.   

    pos:TPoint,所以pos纪录屏幕像素显示的位置Result???
      

  3.   

    Type
    TWMMouse=record
    Msg:TMsgParam;
    Keys:Word;
    case Integer of
    0:(Xpos:Integer;Ypos:Integer);
    1:(Pos:TPoint;Result:LongPoint);
    End;应该是定义的是鼠标的系统消息记录,该记录是一个变体记录;msg表示系统消息的消息参数,
    case Integer of
    0:(Xpos:Integer;Ypos:Integer);
    1:(Pos:TPoint;Result:LongPoint);
    表示根据Msg的取值在记录中使用Xpos:Integer;Ypos:Integer还是pos:TPoint;Result:LongPoint
    具体看delphi的帮助
      

  4.   

    Type
    TWMMouse=record
    Msg:TMsgParam;
    Keys:Word;
    case Integer of
    0:(Xpos:Integer;Ypos:Integer);
    1:(Pos:TPoint;Result:LongPoint);
    End;应该是定义的是鼠标的系统消息记录,该记录是一个变体记录;msg表示系统消息的消息参数,
    case Integer of
    0:(Xpos:Integer;Ypos:Integer);
    1:(Pos:TPoint;Result:LongPoint);
    表示根据Msg的取值在记录中使用Xpos:Integer;Ypos:Integer还是pos:TPoint;Result:LongPoint
    具体看delphi的帮助