rectangle(int left,int top,int right,int bottom)中的参数什么意思

来源:百度知道 编辑:UC知道 时间:2024/06/20 17:53:13
rectangle(int left,int top,int right,int bottom)中的参数什么意思

rect结构定义了一个矩形框左上角以及右下角的坐标,RECT结构通常用于Windows编程。
typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
成员
left : 指定矩形框左上角的x坐标
top: 指定矩形框左上角的y坐标
right: 指定矩形框右下角的x坐标
bottom:指定矩形框右下角的y坐标
备注:
当rect传递给fillrect函数时,该矩形框将被填充满,但不包括右栏和底行的像素。
该结构与rectl结构是同一结构。