NT4/private/utils/wizards/shrpub/transbmp.h
2020-09-30 17:12:29 +02:00

41 lines
756 B
C++

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
transbmp.h : interface of the CTransBitmap class
File History:
JonY Jan-96 created
--*/
//
/////////////////////////////////////////////////////////////////////////////
class CTransBmp : public CBitmap
{
public:
CTransBmp();
~CTransBmp();
void Draw(HDC hDC, int x, int y);
void Draw(CDC* pDC, int x, int y);
void DrawTrans(HDC hDC, int x, int y);
void DrawTrans(CDC* pDC, int x, int y);
int GetWidth();
int GetHeight();
private:
int m_iWidth;
int m_iHeight;
void GetMetrics();
CBitmap* m_hbmMask; // handle to mask bitmap
void CreateMask(CDC* pDC);
};
/////////////////////////////////////////////////////////////////////////////