Share via


Gdi::CreateRectRgn_I (Windows CE 5.0)

Send Feedback

This method creates a rectangular region.

static WINGDIAPI HRGN WINAPI CreateRectRgn_I(intnLeftRect,intnTopRect,intnRightRect,intnBottomRect);

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

Gdi | CreateRectRgn | Gdi::CreateRectRgnIndirect_I

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.