[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TCMMouseWheel

Parameters of a CMMouseWheel message.

Declaration

Source position: controls.pp line 97

type TCMMouseWheel = record

  MSg: Cardinal;

  

The exact Message ID (WM_MOUSEWHEEL?).

  ShiftState: TShiftState;

  

State of modifier keys and mouse buttons.

  Unused: Byte;

  

inserted for alignment only.

  WheelDelta: SmallInt;

  case Integer of

    0: (

        XPos: SmallInt;

  

Mouse X position.

        YPos: SmallInt;

  

Mouse Y position.

      );

    1: (

        Pos: TSmallPoint;

  

Mouse position.

        Result: LRESULT;

  

Zero indicates that the message was handled.

      );

end;

Description

Details held include:
          the Message associated with the wheel;
          the shift state (ie whether Shift, Alt, Control etc keys have been pressed);
          mouse position and the message Result.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.