Call this member function to make the dimensions of a CRect object equal to the union of the two source rectangles. The union is the smallest rectangle that contains both source rectangles.
BOOL UnionRect( LPCRECT lpRect1, LPCRECT lpRect2 );
| Header file: | Afxwin.h | 
| Platforms: | |
| Versions: | 1.0 and later | 
| Complete documentation: | Visual C++ documentation | 
CRect Overview, CRect Member Functions, Simple Value Types, CRect::operator |=, CRect::operator |, CRect::IntersectRect, CRect::SubtractRect, CRect::NormalizeRect