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.

42 lines
808 B

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