SetRect (Windows CE 5.0)

Send Feedback

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 RECT structure.

BOOLSetRect(LPRECTlprc, intxLeft, intyTop, intxRight, intyBottom);

Parameters

  • lprc
    Long pointer to the RECT structure 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 Values

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Rectapi.lib.

See Also

CopyRect | SetRectEmpty | RECT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.