POINTS 結構 (windef.h)

POINTS 結構會定義點的 x 和 Y 座標。

語法

typedef struct tagPOINTS {
#if ...
  SHORT x;
#if ...
  SHORT y;
#else
  SHORT y;
#endif
#else
  SHORT x;
#endif
} POINTS, *PPOINTS, *LPPOINTS;

成員

x

指定點的 X 座標。

y

指定點的 Y 座標。

備註

POINTS 結構類似於 POINTPOINTL 結構。 差異在於 POINTS 結構的成員屬於 SHORT 類型,而其他兩個結構的成員則屬於 LONG 類型。

規格需求

需求
標頭 windef.h (包含 Windows.h)

另請參閱

POINTL