resourceloader.h
来自「hl2 source code. Do not use it illegal.」· C头文件 代码 · 共 29 行
H
29 行
/*----------------------------------------------------------------------
Copyright (c) 1998 Gipsysoft. All Rights Reserved.
Please see the file "licence.txt" for licencing details.
File: ResourceLoader.h
Owner: russf@gipsysoft.com
Purpose: class to load resources of any type.
----------------------------------------------------------------------*/
#ifndef RESOURCELOADER_H
#define RESOURCELOADER_H
class CResourceLoader
{
public:
CResourceLoader( HINSTANCE hInst = GetModuleHandle( NULL ) );
virtual ~CResourceLoader();
inline bool Load( UINT uID, LPCTSTR pcszType ) { return Load( MAKEINTRESOURCE( uID ), pcszType ); }
bool Load( LPCTSTR pcszName, LPCTSTR pcszType );
LPCVOID GetData() const { return m_pData; }
int GetSize() const { return m_nSize; }
private:
LPVOID m_pData;
int m_nSize;
HINSTANCE m_hInst;
};
#endif //RESOURCELOADER_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?