view: Enable visual styles.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2021-06-10 11:04:39 +08:00 committed by Alexandre Julliard
parent 3058bac5e9
commit d271efe012
5 changed files with 24 additions and 1 deletions

View File

@ -1,5 +1,5 @@
MODULE = view.exe
IMPORTS = comdlg32 user32 gdi32
IMPORTS = comdlg32 user32 gdi32 comctl32
EXTRADLLFLAGS = -mwindows -municode -mno-cygwin

View File

@ -17,6 +17,7 @@
*/
#include <windef.h>
#include <winuser.h>
#define IDS_DESCRIPTION 2
#define IDS_OPEN_META_STRING 3

View File

@ -17,6 +17,7 @@
*/
#include <windows.h>
#include <commctrl.h>
#include <commdlg.h>
#include <stdio.h>
@ -403,6 +404,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
{
MSG msg;
InitCommonControls();
/* Other instances of app running? */
if (!hPrevInstance)
{

View File

@ -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.View" 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>

View File

@ -48,3 +48,6 @@ BEGIN
IDS_DESCRIPTION "Regular Metafile Viewer"
IDS_OPEN_META_STRING "Metafiles (*.wmf, *.emf)"
END
/* @makedep: view.manifest */
1 RT_MANIFEST view.manifest