다음을 통해 공유


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));

요구 사항

헤더: afxwin.h

참고 항목

참조

AfxDrawGrayBitmap

AfxGetDitheredBitmap

개념

MFC 매크로 및 전역

기타 리소스

회색 및 디더링된 비트맵 함수