BOOL SetRect(lprc, X1, Y1, X2, Y2) | |||||
LPRECT lprc; | /* address of structure with rectangle to set | */ | |||
int X1; | /* left side | */ | |||
int Y1; | /* top side | */ | |||
int X2; | /* right side | */ | |||
int Y2; | /* bottom side | */ |
This function creates a new rectangle by filling the RECT data structure pointed to by the lprc parameter with the coordinates given by the X1, Y1, X2, and Y2 parameters.
lprc
Points to the RECT structure that is to receive the new rectangle coordinates.
The RECT structure has the following form:
typedef struct tagRECT { /* rc */
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
X1
Specifies the x-coordinate of the upper-left corner.
Y1
Specifies the y-coordinate of the upper-left corner.
X2
Specifies the x-coordinate of the lower-right corner.
Y2
Specifies the y-coordinate of the lower-right corner.
TRUE is returned for success, FALSE for failure.