This member function draws a rectangle using the current pen. The interior of the rectangle is filled using the current brush.
BOOL Rectangle( int x1, int y1, int x2, int y2 );
BOOL Rectangle( LPCRECT lpRect );
| Header File | Afxwin.h |
| Platforms | |
| Versions | 1.0 and later |
| Complete documentation | Visual C++ documentation |
CDC Overview, CDC Member Functions, Graphical Drawing Classes, CDC::PolyLine, CDC::RoundRect, CRect