Visual Studio 2010 - Visual C++
AfxGetGrayBitmap
Copies a gray version of a bitmap.
void AFXAPI AfxGetGrayBitmap( const CBitmap &rSrc, CBitmap *pDest, COLORREF crBackground );
Parameters
Remarks
A bitmap copied with AfxGetGrayBitmap will have the appearance of a disabled control.

Example
Visual C++
CBitmap bm; bm.LoadBitmap(IDB_BITMAP1); CBitmap bmGray; AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU));
Requirements
Header: afxwin.h
See Also