Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SetRect

Windows Mobile 6.5
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 RECT structure.


BOOL SetRect(
  LPRECT lprc, 
  int xLeft, 
  int yTop, 
  int xRight, 
  int yBottom
);

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.

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Headerwinbase.h
LibraryRectapi.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft