Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Copies a gray version of a bitmap.
void AFXAPI AfxGetGrayBitmap(
const CBitmap &rSrc,
CBitmap *pDest,
COLORREF crBackground
);
Parameters
rSrc
The source bitmap.pDest
The destination bitmap.crBackground
The new background color (typically gray, such as COLOR_MENU).
Remarks
A bitmap copied with AfxGetGrayBitmap will have the appearance of a disabled control.
.gif)
Example
CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
CBitmap bmGray;
AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU));
Requirements
Header: afxwin.h