Call this member function to create a rectangular region. The CRgn object must already have been initialized before calling SetRectRgn.
void SetRectRgn ( int x1, int y1, int x2, int y2 );
void SetRectRgn( LPCRECT lpRect );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
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.
CRgn Overview, CRgn Member Functions, Graphical Drawing Object Classes, CRgn::CreateRectRgn