AfxDrawGrayBitmap
繪製點陣圖的灰色版本。
void AFXAPI AfxDrawGrayBitmap(
CDC *pDC,
int x,
int y,
const CBitmap &rSrc,
COLORREF crBackground
);
參數
pDC
指向目標 DC。x
目的 x 座標。y
目的 y 座標。rSrc
來源點陣圖中。crBackground
新的背景色彩 (通常是灰色,例如 COLOR_MENU)。
備註
點陣圖,以繪製AfxDrawGrayBitmap必須停用控制項的外觀。
範例
void CDCView::DrawGrayBitmap(CDC* pDC)
{
CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
AfxDrawGrayBitmap(pDC, 10, 50, bm, GetSysColor(COLOR_MENU));
}
需求
標頭: afxwin.h