⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bmp.h

📁 带滚动条的图像浏览器
💻 H
字号:
#ifndef _CBITMAPFILE_H_
#define _CBITMAPFILE_H_

class CBitmapFile : public CGdiObject
{
	DECLARE_DYNAMIC(CBitmapFile)

public:
	static CBitmapFile* FromHandle(HBITMAP hBitmap);

	// Constructors
	CBitmapFile();
	BOOL LoadBitmap(LPCTSTR lpszFileName);
	BOOL CreateBitmap(int nWidth, int nHeight, UINT nBitCount, const void* lpBits);
	BOOL CreateBitmapIndirect(LPBITMAPINFO lpBitmapInfo, const void* lpBits);

	// Attributes
	operator HBITMAP() const;
	int GetBitmap(BITMAP* pBitMap);

protected:
	// Attributes
	int GetColorNumber(WORD wBitCount);

public:
	// Operations
	DWORD SetBitmapBits(DWORD dwCount, const void* lpBits);
	DWORD GetBitmapBits(DWORD dwCount, LPVOID lpBits);

	// Implementation

public:
	virtual ~CBitmapFile();
};

#endif

⌨️ 快捷键说明

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