MAKEPOINTS

  POINTS MAKEPOINTS(lval)    

The MAKEPOINTS macro converts a long value that contains the x- and y-coordinates of a point into a POINTS structure.

Parameters

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.

Return Value

The return value is a pointer to a POINTS structure.

Comments

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;

See Also

GetMessagePos