GET_X_LPARAM macro (windowsx.h)

Retrieves the signed x-coordinate from the specified LPARAM value.

Syntax

void GET_X_LPARAM(
   lp
);

Parameters

lp

The data from which the x-coordinate is to be extracted.

Return value

Type: int

X-coordinate.

Remarks

Use GET_X_LPARAM instead of LOWORD to extract signed coordinate data. Negative screen coordinates may be returned on multiple monitor systems.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header windowsx.h (include Windowsx.h)

See also

Conceptual

GET_Y_LPARAM

LOWORD

Reference

Windows Data Types