AfxDrawGrayBitmap
更新 : 2007 年 11 月
ビットマップの淡色表示 (灰色) バージョンを描画します。
void AFXAPI AfxDrawGrayBitmap(
CDC *pDC,
int x,
int y,
const CBitmap &rSrc,
COLORREF crBackground
);
パラメータ
pDC
描画先のデバイス コンテキストを指します。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