BackgroundUtil.h 487 B

12345678910111213141516171819202122232425
  1. #ifndef _BACKGROUNDUTIL_H_
  2. #define _BACKGROUNDUTIL_H_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. class CBackgroundUtil
  7. {
  8. public:
  9. BOOL SetBitmap(UINT uResourceID = 0);
  10. CBackgroundUtil();
  11. virtual ~CBackgroundUtil();
  12. protected:
  13. BOOL TileBitmap(CDC* pDC, CRect rc);
  14. BOOL GetBitmapAndPalette(UINT nIDResource, CBitmap& bitmap, CPalette& pal);
  15. // For background bitmap
  16. CBitmap m_BmpPattern;
  17. CPalette m_BmpPalette;
  18. int m_nBmpWidth;
  19. int m_nBmpHeight;
  20. };
  21. #endif