如题,谢谢!

解决方案 »

  1.   


      TMsg = tagMSG;
      tagMSG = packed record
        hwnd: HWND;
        message: UINT;
        wParam: WPARAM;
        lParam: LPARAM;
        time: DWORD;
        pt: TPoint;
      end;
    TMsg encodes the information from a Windows message.
    hwnd The handle of the window to which the message is sent.
    message The identifier of the message (the Windows message code).
    wParam The wParam of the message.
    lParam The lParam of the message.
    time The time that the message was sent.
    pt The position of the mouse cursor when the message was sent.  TMessage = packed 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;
    The TMessage type represents a Windows message in WndProc and other methods.The Msg field represents the Windows Message code.The WParam field represents the WParam of the message. To access the low and high words of this field, use the WParamLo and WParamHi fields instead.The LParam field represents the LParam of the message. To access the low and high words of this field, use the LParamLo and LParamHi fields instead.The Result field holds the return value. To access the low and high words of this field, use the ResultLo and ResultHi fields instead.