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