POINT 結構
POINT 結構定義點的 X- 和 Y 座標。
typedef struct tagPOINT {
LONG x;
LONG y;
} POINT;
參數
x
指定點的 X 座標。y
指定點的 Y 座標。
範例
//Alternate ways to initialize a POINT structure:
POINT ptA;
ptA.x = 370;
ptA.y = 550;
POINT ptB = {370,550};
需求
標頭 : windef.h