Export (0) Print
Expand All
Expand Minimize

SetRectRgn

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function changes a region into a rectangular region with the specified coordinates.


BOOL SetRectRgn( 
  HRGN hrgn, 
  int nLeftRect, 
  int nTopRect, 
  int nRightRect, 
  int nBottomRect
);

hrgn

[in] Handle to the region.

nLeftRect

[in] Specifies the x-coordinate of the upper left corner of the rectangular region.

nTopRect

[in] Specifies the y-coordinate of the upper left corner of the rectangular region.

nRightRect

[in] Specifies the x-coordinate of the lower right corner of the rectangular region.

nBottomRect

[in] Specifies the y-coordinate of the lower right corner of the rectangular region.

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

The region does not include the lower and right boundaries of the rectangle.

Headerwindows.h
Librarycoredll.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft