Export (0) Print
Expand All
TRY
Expand Minimize

AfxGetGrayBitmap

Copies a gray version of a bitmap.

void AFXAPI AfxGetGrayBitmap( 
   const CBitmap &rSrc, 
   CBitmap *pDest, 
   COLORREF crBackground 
);

rSrc

The source bitmap.

pDest

The destination bitmap.

crBackground

The new background color (typically gray, such as COLOR_MENU).

A bitmap copied with AfxGetGrayBitmap will have the appearance of a disabled control.

Original Vs Gray Interface

CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
CBitmap bmGray;
AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU));

Header: afxwin.h

Community Additions

ADD
Show:
© 2014 Microsoft