POINTS MAKEPOINTS(lval) |
The MAKEPOINTS macro converts a long value that contains the x- and y-coordinates of a point into a POINTS structure.
lval
Specifies the coordinates of a point. The x-coordinate is in the low-order word, and the y-coordinate is in the high-order word.
The return value is a pointer to a POINTS structure.
The MAKEPOINTS macro is defined as follows:
#define MAKEPOINTS(l) (*((POINTS FAR*)&(l)))
The POINTS structure has the following form:
typedef struct tagPOINTS { /* pts */
SHORT x;
SHORT y;
} POINTS;
GetMessagePos