CreateRectRgnIndirect

  HRGN CreateRectRgnIndirect(lprc)    
  CONST RECT *lprc; /* address of the rectangle */

The CreateRectRgnIndirect function creates a rectangular region.

Parameters

lprc

Points to a RECT structure that contains the coordinates of the upper-left and lower-right corners of the rectangle that defines the region.

Return Value

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

Comments

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

See Also

DeleteObject, SelectObject