Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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