CreateRectRgnIndirect

Syntax

HRGN CreateRectRgnIndirect(lpRect)

This function creates a rectangular region.

Parameter Type/Description  
lpRect LPRECT Points to a RECT data structure that contains the coordinates of the upper-left and lower-right corners of the region.  

Return Value

The return value identifies a new region if the function is successful. Otherwise, it is NULL.

Comments

The width of the rectangle must not exceed 32,767 units. This limit applies to the height of the rectangle as well.