Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
730 B

//---------------------------------------------------------------------------
// 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;
};
//---------------------------------------------------------------------------