Draws a gray version of a bitmap.
void AFXAPI AfxDrawGrayBitmap( CDC *pDC, int x, int y, const CBitmap &rSrc, COLORREF crBackground );
Points to the destination DC.
The destination x-coordinate.
The destination y-coordinate.
The source bitmap.
The new background color (typically gray, such as COLOR_MENU).
A bitmap drawn with AfxDrawGrayBitmap will have the appearance of a disabled control.
void CDCView::DrawGrayBitmap(CDC* pDC) { CBitmap bm; bm.LoadBitmap(IDB_BITMAP1); AfxDrawGrayBitmap(pDC, 10, 50, bm, GetSysColor(COLOR_MENU)); }
Header: afxwin.h