Skip to content

Commit

Permalink
add comctl32 patch
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Jan 24, 2024
1 parent 1e305d6 commit e142401
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions patches/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ disable_huge_page.patch | Linux | 可选 Optional | 禁用linux构建的max-page
vcruntime140_\<php version\>.patch | Windows | 必须 Nessesary | 禁用sfx启动时GetModuleHandle(vcruntime140(d).dll) Disable GetModuleHandle(vcruntime140(d).dll) at sfx start
win32_\<php version\>.patch | Windows | 必须 Nessesary | 修改构建系统以静态构建 Modify build system for build sfx file
zend_stream.patch | Windows | 必须 Nessesary | 修改构建系统以静态构建 Modify build system for build sfx file
comctl32.patch | Windows | 可选 Optional | 添加comctl32.dll manifest以启用[visual style](https://learn.microsoft.com/en-us/windows/win32/controls/visual-styles-overview) (会让窗口控件好看一些) Add manifest dependency for comctl32 to enable [visual style](https://learn.microsoft.com/en-us/windows/win32/controls/visual-styles-overview) (makes window control looks modern)

## Something special

Expand Down
21 changes: 21 additions & 0 deletions patches/comctl32.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/win32/build/default.manifest b/win32/build/default.manifest
index a73c2fb53d..52351251e1 100644
--- a/win32/build/default.manifest
+++ b/win32/build/default.manifest
@@ -24,4 +24,16 @@
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
+ <dependency>
+ <dependentAssembly>
+ <assemblyIdentity
+ type="win32"
+ name="Microsoft.Windows.Common-Controls"
+ version="6.0.0.0"
+ processorArchitecture="*"
+ publicKeyToken="6595b64144ccf1df"
+ language="*"
+ />
+ </dependentAssembly>
+ </dependency>
</assembly>

0 comments on commit e142401

Please sign in to comment.