Partager via


2.2.2.7.3 Server Move/Size End PDU (TS_RAIL_ORDER_LOCALMOVESIZE)

The Server Move/Size End PDU is sent by the server when a window on the server is completing a move or resize. The client uses this information to end a local move/resize of the corresponding local window.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Hdr

WindowId

IsMoveSizeStart

MoveSizeType

TopLeftX

TopLeftY

Hdr (4 bytes): A TS_RAIL_PDU_HEADER header. The orderType field of the header MUST be set to TS_RAIL_ORDER_LOCALMOVESIZE (0x0009).

WindowId (4 bytes): An unsigned 32-bit integer. The ID of the window on the server that is being moved or resized.

IsMoveSizeStart (2 bytes): An unsigned 16-bit integer. Indicates the move or resize is ending. This field MUST be set to 0.

MoveSizeType (2 bytes): An unsigned 16-bit integer. Indicates the type of the move/size.

Value

Meaning

RAIL_WMSZ_LEFT

0x0001

The left edge of the window is being sized.

RAIL_WMSZ_RIGHT

0x0002

The right edge of the window is being sized.

RAIL_WMSZ_TOP

0x0003

The top edge of the window is being sized.

RAIL_WMSZ_TOPLEFT

0x0004

The top-left corner of the window is being sized.

RAIL_WMSZ_TOPRIGHT

0x0005

The top-right corner of the window is being sized.

RAIL_WMSZ_BOTTOM

0x0006

The bottom edge of the window is being sized.

RAIL_WMSZ_BOTTOMLEFT

0x0007

The bottom-left corner of the window is being sized.

RAIL_WMSZ_BOTTOMRIGHT

0x0008

The bottom-right corner of the window is being sized.

RAIL_WMSZ_MOVE

0x0009

The window is being moved by using the mouse.

RAIL_WMSZ_KEYMOVE

0x000A

The window is being moved by using the keyboard.

RAIL_WMSZ_KEYSIZE

0x000B

The window is being resized by using the keyboard.

TopLeftX (2 bytes): A signed 16-bit integer. The x-coordinate of the moved or resized window's top-left corner.

TopLeftY (2 bytes): A signed 16-bit integer. The y-coordinate of the moved or resized window's top-left corner.