Compartilhar via


CMFCToolBarImages::FillDitheredRect

Fills a rectangle with the toolbar background colors.

static void FillDitheredRect(
   CDC* pDC,
   const CRect& rect 
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] rect
    The coordinates of a rectangle to fill.

Remarks

Use this method to fill a rectangle with a color that is the average of the system colors COLOR_BTNFACE and COLOR_BTNHIGHLIGHT. If the system is using 256 or fewer colors, the rectangle will be filled with a dithered pattern of those two colors instead.

Requirements

Header: afxtoolbarimages.h

See Also

Reference

CMFCToolBarImages Class

Hierarchy Chart