Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function sets the coordinates of the specified rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the RECTstructure.
Syntax
BOOL SetRect( LPRECT lprc, int xLeft, int yTop, int xRight, int yBottom ); |
Parameters
- lprc
-
Long pointer to the RECTstructure that contains the rectangle to be set.
- xLeft
-
Specifies the x-coordinate of the rectangle's upper-left corner.
- yTop
-
Specifies the y-coordinate of the rectangle's upper-left corner.
- xRight
-
Specifies the x-coordinate of the rectangle's lower-right corner.
- yBottom
-
Specifies the y-coordinate of the rectangle's lower-right corner.
Return Value
Nonzero indicates success.
Zero indicates failure.
To get extended error information, call GetLastError.
Requirements
Header | winbase.h |
Library | Rectapi.lib |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |