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

  1. //---------------------------------------------------------------------------
  2. // BmpCache.cpp - single bitmap/hdc cache object for uxtheme
  3. //---------------------------------------------------------------------------
  4. #pragma once
  5. //---------------------------------------------------------------------------
  6. class CBitmapCache
  7. {
  8. public:
  9. //---- public methods ----
  10. CBitmapCache();
  11. ~CBitmapCache();
  12. HBITMAP AcquireBitmap(HDC hdc, int iWidth, int iHeight);
  13. void ReturnBitmap();
  14. protected:
  15. //---- data ----
  16. HBITMAP _hBitmap;
  17. int _iWidth;
  18. int _iHeight;
  19. CRITICAL_SECTION _csBitmapCache;
  20. };
  21. //---------------------------------------------------------------------------