How To Compile[color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]
Download 7zip Source code [color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]https://sourceforge.net/projects/sevenzip/I used 7zip 19 version. But I only changed some of the UI codes. I think it's possible that one can use my files to compile newer versions.use Nukem9's [color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]https://github.com/Nukem9/detours Project to compile detours.lib with compiler setting /Grand copy detours.lib to CPP\7zip\Bundles\Fmcopy my files to the 7zip source folder, replace the old files, and compile.Read this first. [color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]http://www.ski-epic.com/2012_compiling_7zip_on_windows_with_visual_studio_10/index.htmlturns out it uses nmake to compileopen "Developer Command Prompt for VS 2017"[backcolor=var(--darkreader-bg--bgColor-muted, var(--darkreader-bg--color-canvas-subtle))]cd C:\my7zip\CPP\7zip\Bundles\Fmnmake
compiled file is in[backcolor=var(--darkreader-bg--bgColor-muted, var(--darkreader-bg--color-canvas-subtle))]C:\my7zip\CPP\7zip\Bundles\Fm\O\7FM.exe
///////////////// Change ///////////////////////////[color=var(--darkreader-text--fgColor-accent, var(--darkreader-text--color-accent-fg))]
edited[backcolor=var(--darkreader-bg--bgColor-muted, var(--darkreader-bg--color-canvas-subtle))]CPP\7zip\UI\FileManager\FM.cpp, Cpp\Build.mak, CPP\7zip\UI\FileManager\FM.makCPP\7zip\UI\FileManager\StdAfx.h #define _WIN32_WINNT 0x0600 CPP\7zip\UI\FileManager\Panel.cpp CMyListView::OnMessage Panel.h add header files
Added IatHook.h, DarkMode.h,IatHook.cpp, Darkmode.cpp, Detours.h, EditorUIDarkMode.h, EditorUIDarkMode.cpp (Many files come from links I mentioned, but I edited many contents.)
(来自https://github.com/huanrenfeng/7zipDarkmode)