www.pudn.com > SkinSlider.zip > ZipBitmap.h


#if !defined(AFX_ZIPBITMAP_H__13E1FC55_7116_4544_A74D_36486B7D3331__INCLUDED_) 
#define AFX_ZIPBITMAP_H__13E1FC55_7116_4544_A74D_36486B7D3331__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ZipBitmap.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CZipBitmap window 
 
class CZipBitmap : public CBitmap 
{ 
public: 
	void DrawTrans(HDC hDC, int x, int y,COLORREF colTrans); 
    CZipBitmap(); 
    ~CZipBitmap(); 
    void Draw(HDC hDC, int x, int y); 
	void Draw(HDC hDC, int x, int y,int height,int width); 
    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: 
	void CreateMask(HDC hDC,COLORREF colTrans); 
    int m_iWidth; 
    int m_iHeight; 
    HBITMAP m_hbmMask;    // Handle to mask bitmap 
 
    void GetMetrics(); 
    void CreateMask(HDC hDC); 
}; 
 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ZIPBITMAP_H__13E1FC55_7116_4544_A74D_36486B7D3331__INCLUDED_)