CRgn::SetRectRgn

Call this member function to create a rectangular region. The CRgn object must already have been initialized before calling SetRectRgn.

Syntax

void SetRectRgn ( int x1, int y1, int x2, int y2 );

void SetRectRgn( LPCRECT lpRect );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

The CRgn::SetRectRgn memeber function is included for compatibility with existing code. The CRgn::SetRectRgn member function in Windows CE just calls CRgn::CreateRectRgn; you don't save a memory allocation by using this function.

See Also

CRgn Overview, CRgn Member Functions, Graphical Drawing Object Classes, CRgn::CreateRectRgn