Gdi::CreateRectRgn_I

This method creates a rectangular region.

static WINGDIAPI HRGN WINAPI CreateRectRgn_I(
  int nLeftRect, 
  int nTopRect, 
  int nRightRect, 
  int nBottomRect
);

Parameters

  • nLeftRect
    [in] Integer that specifies the x-coordinate of the upper-left corner of the region.
  • nTopRect
    [in] Integer that specifies the y-coordinate of the upper-left corner of the region.
  • nRightRect
    [in] Integer that specifies the x-coordinate of the lower-right corner of the region.
  • nBottomRect
    [in] Integer that specifies the y-coordinate of the lower-right corner of the region.

Return Values

The handle to the region indicates success. NULL indicates failure. To get extended error information, call GetLastError.

Remarks

This method is an internal version of the CreateRectRgn function.

The region is exclusive of the bottom and right edges.

Windows CE represents regions using 16-bit values.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

See Also

CreateRectRgn | Gdi::CreateRectRgnIndirect_I

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.