CDC::Rectangle

This member function draws a rectangle using the current pen. The interior of the rectangle is filled using the current brush.

Syntax

BOOL Rectangle( int x1, int y1, int x2, int y2 );

BOOL Rectangle( LPCRECT lpRect );

At a Glance

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

See Also

CDC Overview, CDC Member Functions, Graphical Drawing Classes, CDC::PolyLine, CDC::RoundRect, CRect