AfxGetGrayBitmap
Copia una versione grigia di una bitmap.
void AFXAPI AfxGetGrayBitmap(
const CBitmap &rSrc,
CBitmap *pDest,
COLORREF crBackground
);
Parametri
rSrc
La bitmap della risorsa.pDest
La bitmap di destinazione.crBackground
Il nuovo colore di sfondo in genere sezione grigia, come COLOR_MENU).
Note
Una bitmap copiato con AfxGetGrayBitmap avrà l'aspetto di un controllo disabled.
Esempio
CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
CBitmap bmGray;
AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU));
Requisiti
Intestazione: afxwin.h