/********************************************************************/
/* Copyright (c) 2019 System fugen G.K. and Yuzi Mizuno          */
/* All rights reserved.                                             */
/* ***************************************************** */
/********************************************************************/
// BitmapHandle.h: CBitmapHandle クラスのインターフェイス

#if !defined(AFX_BITMAPHANDLE_H__D8425051_45AC_4C74_86DF_A31538261779__INCLUDED_)
#define AFX_BITMAPHANDLE_H__D8425051_45AC_4C74_86DF_A31538261779__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// class CBitmapHandle
//
// mini CBitmapT<false> of WTL.
class CBitmapHandle{
public:
	// constructor/destructor
	CBitmapHandle(HBITMAP hBmp = 0) : m_hBitmap(hBmp){}
	~CBitmapHandle();

	// create
	HBITMAP CreateCompatibleBitmap(HDC hDC, int nWidth, int nHeight);
	BOOL DeleteObject();

	// attributes
	int GetBitmap(BITMAP* pBitMap) const;
	bool GetSize(SIZE& sz) const;

	// data member
	HBITMAP m_hBitmap;
};

#endif // !defined(AFX_BITMAPHANDLE_H__D8425051_45AC_4C74_86DF_A31538261779__INCLUDED_)
