Files
Open-Shell-Menu/ClassicShellSrc/ClassicShellLib/StringSet.h
2017-12-04 15:02:13 +11:00

23 lines
630 B
C++

// Classic Shell (c) 2009-2016, Ivo Beltchev
// Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author
#pragma once
#include <map>
class CStringSet: public std::map<int,CString>
{
public:
CStringSet( void ) { m_hInstance=NULL; }
// Initializes the string database
void Init( HINSTANCE hInstance );
// Returns a string by ID (returns "" if the string is missing)
CString GetString( UINT uID );
private:
HINSTANCE m_hInstance;
static BOOL CALLBACK CStringSet::EnumResNameProc( HMODULE hModule, LPCTSTR lpszType, LPTSTR lpszName, LONG_PTR lParam );
};