CButton::GetBitmap
更新 : 2007 年 11 月
このメンバ関数は、以前に SetBitmap で設定されたビットマップのハンドルを取得するために呼び出します。
HBITMAP GetBitmap( ) const;
戻り値
ビットマップへのハンドル。以前にビットマップが指定されてない場合は NULL を返します。
使用例
CButton myBitmapButton;
// Create a bitmap button.
myBitmapButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_BITMAP,
CRect(10,10,60,50), pParentWnd, 1);
// If no bitmap is defined for the button, define the bitmap to the
// system close bitmap.
if (myBitmapButton.GetBitmap() == NULL)
myBitmapButton.SetBitmap(::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CLOSE)));
必要条件
ヘッダー : afxwin.h