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

📄 memfileex.h

📁 visual c++ 实例编程
💻 H
字号:
/*  This file was written by Amir Israeli , July 2000   Email: israelaq@walla.co.il  
No warranty of any kind . Dont remove this header . Thanks.
*/
#if !defined(AFX_MEMFILEEX_H__39FBD780_5C1D_11D4_B8C4_8809CE7C2F5F__INCLUDED_)
#define AFX_MEMFILEEX_H__39FBD780_5C1D_11D4_B8C4_8809CE7C2F5F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MemFileEx.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMemFileEx window

class CMemFileEx : public CMemFile
{
public:
	CMemFileEx();
	virtual ~CMemFileEx();

	BOOL LoadResource( LPCTSTR lpszName, LPCTSTR lpszType);
	BOOL LoadResource( UINT uResourceID, LPCTSTR lpszType) {
		return LoadResource( MAKEINTRESOURCE(uResourceID), lpszType);
	}

	//get size of resource //also mentained in
	// m_nBufferSize a member of CMemFile
	DWORD GetFileSize() { return cbSize; }
	LPBYTE GetResourceData() { return m_lpBuffer; }

	BOOL CopyResourceToHGLOBAL( HGLOBAL *phGlobal, DWORD *pdwSize);
protected:

	DWORD   cbSize;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MEMFILEEX_H__39FBD780_5C1D_11D4_B8C4_8809CE7C2F5F__INCLUDED_)

⌨️ 快捷键说明

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