czipbitmap.h

来自「EVC环境下用SDK开发WINCE的应用程序」· C头文件 代码 · 共 44 行

H
44
字号
#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:
	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 width, int height );
    void DrawTrans(HDC hDC, int x, int y);
    int GetWidth();
    int GetHeight();
	BOOL LoadBitmap(LPCTSTR lpBitmapName);

private:
	void CreateMask(HDC hDC,COLORREF colTrans);
    int m_iWidth;
    int m_iHeight;
    HBITMAP m_hbmMask;    // Handle to mask bitmap

	HBITMAP m_hBitmap;
    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_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?