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.

28 lines
681 B

  1. // transbmp.h : interface of the CTransBitmap class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. class CTransBmp : public CBitmap
  5. {
  6. public:
  7. CTransBmp();
  8. ~CTransBmp();
  9. void Draw(HDC hDC, int x, int y);
  10. void Draw(CDC* pDC, int x, int y);
  11. void DrawTrans(HDC hDC, int x, int y);
  12. void DrawTrans(CDC* pDC, int x, int y);
  13. int GetWidth();
  14. int GetHeight();
  15. private:
  16. int m_iWidth;
  17. int m_iHeight;
  18. CBitmap* m_hbmMask; // handle to mask bitmap
  19. void GetMetrics();
  20. void CreateMask(HDC hDC);
  21. void CreateMask(CDC* pDC);
  22. };
  23. /////////////////////////////////////////////////////////////////////////////