RECT 結構 (windef.h)

RECT 結構會依其左上角和右下角的座標定義矩形。

語法

typedef struct tagRECT {
  LONG left;
  LONG top;
  LONG right;
  LONG bottom;
} RECT, *PRECT, *NPRECT, *LPRECT;

成員

left

指定矩形左上角的 X 座標。

top

指定矩形左上角的 Y 座標。

right

指定矩形右下角的 X 座標。

bottom

指定矩形右下角的 Y 座標。

備註

RECT 結構與 RECTL 結構相同。

規格需求

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

另請參閱

RECTL