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

📄 zimage.h

📁 swf 格式文件(Flash)阅读器.根据 Flash 文件窗口的大小自适应调整阅读器窗口大小。直持压缩过 swf 文件。如果为 *.exe 格式 Flash 文件可用 Exe2Swf 程序进行分解为
💻 H
字号:
//-----------------------------------------------------------------------------
// ZImage (Prototypes) Version 1.00
//
// Routins 4 Showing Picture Files... (.BMP .DIB .EMF .GIF .ICO .JPG .WMF)
//
//=============================================================================

#if !defined(_Z_IMAGE_H_)
#define _Z_IMAGE_H_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifdef FORCE_IMPORT
	#undef AFX_EXT_CLASS
	#define AFX_EXT_CLASS __declspec(dllimport) 
#endif

class CZImage
{
public:
	void FreePictureData();
	BOOL Load(CString sFilePathName);
	BOOL Load(UINT ResourceName, LPCSTR ResourceType);
	BOOL LoadPictureData(BYTE* pBuffer, int nSize);
	BOOL SaveAsBitmap(CString sFilePathName);
	BOOL Show(CDC* pDC, CPoint LeftTop, CPoint WidthHeight, int MagnifyX, int MagnifyY);
	BOOL Show(CDC* pDC, CRect DrawRect);
	BOOL Show(CDC* pDC, CRect DrawRect, CPoint ptLeftTop, CSize sizeWidthHeight);	//-ZYZ-
	BOOL ShowBitmapResource(CDC* pDC, const int BMPResource, CPoint LeftTop);
	BOOL UpdateSizeOnDC(CDC* pDC);

	CZImage();
	virtual ~CZImage();

	IPicture* m_IPicture;	// Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)

	LONG      m_Height;		// Height (In Pixels Ignor What Current Device Context Uses)
	LONG      m_Weight;		// Size Of The ZImage Object In Bytes (File OR Resource)
	LONG      m_Width;		// Width (In Pixels Ignor What Current Device Context Uses)
};

#endif // !defined(_Z_IMAGE_H_)

⌨️ 快捷键说明

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