void SetRect(lpRect,X1,Y1,X2,Y2)
This function creates a new rectangle by filling the RECT data structure pointed to by the lpRect parameter with the coordinates given by the X1, Y1, X2, and Y2 parameters.
Parameter | Type/Description |
lpRect | LPRECT Points to the RECT data structure that is to receive the new rectangle coordinates. | |
X1 | int Specifies the x-coordinate of the upper-left corner. | |
Y1 | int Specifies the y-coordinate of the upper-left corner. | |
X2 | int Specifies the x-coordinate of the lower-right corner. | |
Y2 | int Specifies the y-coordinate of the lower-right corner. |
None.
The width of the rectangle, specified by the absolute value of X2 – X1, must not exceed 32,767 units. This limit applies to the height of the rectangle as well.