The CreateRectRgnIndirect function creates a rectangular region.
HRGN CreateRectRgnIndirect(
CONST RECT *lprc |
// pointer to the rectangle |
); |
If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
The region will be exclusive of the bottom and right edges.
CreateRectRgn, CreateRoundRectRgn, DeleteObject, RECT, SelectObject