2020-09-30 16:53:55 +02:00

25 lines
730 B
C++

//---------------------------------------------------------------------------
// BmpCache.cpp - single bitmap/hdc cache object for uxtheme
//---------------------------------------------------------------------------
#pragma once
//---------------------------------------------------------------------------
class CBitmapCache
{
public:
//---- public methods ----
CBitmapCache();
~CBitmapCache();
HBITMAP AcquireBitmap(HDC hdc, int iWidth, int iHeight);
void ReturnBitmap();
protected:
//---- data ----
HBITMAP _hBitmap;
int _iWidth;
int _iHeight;
CRITICAL_SECTION _csBitmapCache;
};
//---------------------------------------------------------------------------