Source code of Windows XP (NT5)
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.

40 lines
762 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. transbmp.h : header file
  5. File History:
  6. JonY Apr-96 created
  7. --*/
  8. /////////////////////////////////////////////////////////////////////////////
  9. class CTransBmp : public CBitmap
  10. {
  11. public:
  12. CTransBmp();
  13. ~CTransBmp();
  14. void Draw(HDC hDC, int x, int y);
  15. void Draw(CDC* pDC, int x, int y);
  16. void DrawTrans(HDC hDC, int x, int y);
  17. void DrawTrans(CDC* pDC, int x, int y);
  18. int GetWidth();
  19. int GetHeight();
  20. private:
  21. int m_iWidth;
  22. int m_iHeight;
  23. CBitmap* m_hbmMask; // handle to mask bitmap
  24. void GetMetrics();
  25. void CreateMask(HDC hDC);
  26. void CreateMask(CDC* pDC);
  27. };
  28. /////////////////////////////////////////////////////////////////////////////