Поделиться через


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.

Сравнение изначального и серого интерфейсов

Пример

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

Требования

Header: afxwin.h

См. также

Основные понятия

MFC Macros and Globals

Gray and Dithered Bitmap Functions

AfxDrawGrayBitmap

AfxGetDitheredBitmap