mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-04-23 19:40:23 +10:00
Update Shell and Fix Bugs
This commit is contained in:
@@ -77,9 +77,43 @@ std::map <std::string, unsigned> g_nameToId = {
|
||||
MAKENAMEIDMAP (IDS_FAILED_STITLE),
|
||||
MAKENAMEIDMAP (IDS_APPLIST_WINTITLE),
|
||||
MAKENAMEIDMAP (IDS_APPLIST_TITLE),
|
||||
MAKENAMEIDMAP (IDS_APPLIST_CANCEL)
|
||||
MAKENAMEIDMAP (IDS_APPLIST_CANCEL),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_OK),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_CANCEL),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_ABORT),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_RETRY),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_IGNORE),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_YES),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_NO),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_CLOSE),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_HELP),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_TRYAGAIN),
|
||||
MAKENAMEIDMAP (IDS_MSGBOX_CONTINUE)
|
||||
};
|
||||
|
||||
#ifdef MAKENAMEIDMAP
|
||||
#undef MAKENAMEIDMAP
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus_cli
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
[ComVisible (true)]
|
||||
public ref class _I_Resources
|
||||
{
|
||||
public:
|
||||
String ^GetById (unsigned int uiResId) { return GetRCStringCli (uiResId); }
|
||||
unsigned ToId (String ^lpResName)
|
||||
{
|
||||
auto it = g_nameToId.find (MPStringToStdA (lpResName));
|
||||
return (it != g_nameToId.end ()) ? it->second : 0;
|
||||
}
|
||||
String ^ToName (unsigned int ulResId)
|
||||
{
|
||||
for (auto &it : g_nameToId) { if (it.second == ulResId) return CStringToMPString (it.first); }
|
||||
return "";
|
||||
}
|
||||
String ^GetByName (String ^lpResId) { return GetById (ToId (lpResId)); }
|
||||
String ^operator [] (unsigned int uiResId) { return GetRCStringCli (uiResId); }
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user