CreateRectRgnIndirect

This function creates a rectangular region.

At a Glance

Header file: Wingdi.h
Windows CE versions: 1.0 and later

Syntax

HRGN CreateRectRgnIndirect(const RECT * lprc);

Parameters

lprc

[in] Long pointer to a RECT structure that contains the coordinates of the upper-left and lower-right corners of the rectangle that defines the region.

Return Values

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

Remarks

The region will be exclusive of the bottom and right edges.

Windows CE represents regions using 16-bit values.

See Also

DeleteObject, RECT, SelectObject