Zhiyi Zhang : oleview: Enable visual styles.
Alexandre Julliard
julliard at winehq.org
Thu Jun 10 16:04:52 CDT 2021
Module: wine
Branch: master
Commit: e1033e925302f779543bfc8cc5b43d74d2e495ad
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e1033e925302f779543bfc8cc5b43d74d2e495ad
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Thu Jun 10 11:03:42 2021 +0800
oleview: Enable visual styles.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/oleview/oleview.c | 3 +++
programs/oleview/oleview.manifest | 16 ++++++++++++++++
programs/oleview/oleview.rc | 3 +++
3 files changed, 22 insertions(+)
diff --git a/programs/oleview/oleview.c b/programs/oleview/oleview.c
index 410cb053dd8..0d1838bfa69 100644
--- a/programs/oleview/oleview.c
+++ b/programs/oleview/oleview.c
@@ -19,6 +19,7 @@
*/
#include "main.h"
+#include "commctrl.h"
#include "commdlg.h"
#include "shellapi.h"
@@ -554,6 +555,8 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int
MSG msg;
HANDLE hAccelTable;
+ InitCommonControls();
+
if(!InitApplication(hInst))
return FALSE;
diff --git a/programs/oleview/oleview.manifest b/programs/oleview/oleview.manifest
new file mode 100644
index 00000000000..da8d81cffec
--- /dev/null
+++ b/programs/oleview/oleview.manifest
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+<assemblyIdentity type="win32" name="Wine.Oleview" version="0.0.0.0"/>
+<dependency>
+ <dependentAssembly>
+ <assemblyIdentity
+ type="win32"
+ name="Microsoft.Windows.Common-Controls"
+ version="6.0.0.0"
+ processorArchitecture="*"
+ publicKeyToken="6595b64144ccf1df"
+ language="*"
+ />
+ </dependentAssembly>
+</dependency>
+</assembly>
diff --git a/programs/oleview/oleview.rc b/programs/oleview/oleview.rc
index bb252a67e6f..d225f533bbf 100644
--- a/programs/oleview/oleview.rc
+++ b/programs/oleview/oleview.rc
@@ -222,5 +222,8 @@ IDA_OLEVIEW ACCELERATORS
VK_F5, IDM_REFRESH, VIRTKEY
}
+/* @makedep: oleview.manifest */
+1 RT_MANIFEST oleview.manifest
+
/* @makedep: toolbar.bmp */
IDB_TOOLBAR BITMAP toolbar.bmp
More information about the wine-cvs
mailing list