Share via


CDrawingManager::DrawRect

Draws a rectangle with the supplied fill and border colors.

void DrawRect(
   const CRect& rect,
   COLORREF clrFill,
   COLORREF clrLine
);

Parameters

  • [in] rect
    The boundaries for the rectangle.

  • [in] clrFill
    The color this method uses to fill the rectangle.

  • [in] clrLine
    The color this method uses for the border of the rectangle.

Remarks

This method returns without drawing a rectangle if either color is set to -1. It also returns if either dimension of the rectangle is 0.

Requirements

Header: afxdrawmanager.h

See Also

Reference

CDrawingManager Class

Hierarchy Chart