SetRectRgn function
Applies to: desktop apps only
The SetRectRgn function converts a region into a rectangular region with the specified coordinates.
Syntax
BOOL SetRectRgn( __in HRGN hrgn, __in int nLeftRect, __in int nTopRect, __in int nRightRect, __in int nBottomRect );
Parameters
- hrgn [in]
-
Handle to the region.
- nLeftRect [in]
-
Specifies the x-coordinate of the upper-left corner of the rectangular region in logical units.
- nTopRect [in]
-
Specifies the y-coordinate of the upper-left corner of the rectangular region in logical units.
- nRightRect [in]
-
Specifies the x-coordinate of the lower-right corner of the rectangular region in logical units.
- nBottomRect [in]
-
Specifies the y-coordinate of the lower-right corner of the rectangular region in logical units.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The region does not include the lower and right boundaries of the rectangle.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012