Changed the UI and fixed bugs.

This commit is contained in:
Bruce
2026-01-11 15:10:55 +08:00
parent 2e6214a35a
commit 5b7b41a40c
10 changed files with 251 additions and 34 deletions
Binary file not shown.
+32 -2
View File
@@ -1,5 +1,4 @@
#include <Windows.h>
#include <set>
#include <msclr/marshal_cppstd.h>
#include <ShObjIdl.h>
#include <ShlObj.h> // KNOWNFOLDERID, SHGetKnownFolderPath
@@ -286,6 +285,37 @@ public ref class _I_System
return (error == ERROR_OLD_WIN_VERSION) ? FALSE : FALSE;
}
}
property int Archievement
{
int get ()
{
SYSTEM_INFO si;
ZeroMemory (&si, sizeof (si));
typedef VOID (WINAPI *LPFN_GetNativeSystemInfo)(LPSYSTEM_INFO);
LPFN_GetNativeSystemInfo fnGetNativeSystemInfo =
(LPFN_GetNativeSystemInfo)GetProcAddress (
GetModuleHandleW (L"kernel32.dll"),
"GetNativeSystemInfo");
if (fnGetNativeSystemInfo) fnGetNativeSystemInfo (&si);
else GetSystemInfo (&si);
return (int)si.wProcessorArchitecture;
}
}
property _I_Version ^Version
{
_I_Version ^get ()
{
auto ver = Environment::OSVersion->Version;
try
{
return gcnew _I_Version (ver->Major, ver->Minor, ver->Build, ver->Revision);
}
catch (...)
{
return gcnew _I_Version (ver->Major, ver->Minor, ver->Build, 0);
}
}
}
};
public ref class _I_System2: public _I_System
{
@@ -1038,7 +1068,7 @@ public ref class MainHtmlWnd: public System::Windows::Forms::Form, public IScrip
_I_IEFrame ^ieframe;
_I_System3 ^sys;
public:
IBridge (MainHtmlWnd ^wnd): wndinst (wnd), _I_Bridge_Base2 (wnd)
IBridge (MainHtmlWnd ^wnd): wndinst (wnd), _I_Bridge_Base2 (wnd)
{
ieframe = gcnew _I_IEFrame (wnd);
sys = gcnew _I_System3 (wnd);
+3 -1
View File
@@ -88,7 +88,9 @@ std::map <std::string, unsigned> g_nameToId = {
MAKENAMEIDMAP (IDS_MSGBOX_CLOSE),
MAKENAMEIDMAP (IDS_MSGBOX_HELP),
MAKENAMEIDMAP (IDS_MSGBOX_TRYAGAIN),
MAKENAMEIDMAP (IDS_MSGBOX_CONTINUE)
MAKENAMEIDMAP (IDS_MSGBOX_CONTINUE),
MAKENAMEIDMAP (IDS_PREINSTALL_SUPPOS),
MAKENAMEIDMAP (IDS_PREINSTALL_NOSUPPOS)
};
#ifdef MAKENAMEIDMAP
Binary file not shown.