📄 czipbitmap.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:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -