notepad: 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:03:35 +08:00 committed by Alexandre Julliard
parent ed98e3b51b
commit 026a6ff2be
4 changed files with 23 additions and 1 deletions

View File

@ -1,5 +1,5 @@
MODULE = notepad.exe
IMPORTS = comdlg32 shell32 shlwapi user32 gdi32 advapi32
IMPORTS = comdlg32 shell32 shlwapi user32 gdi32 advapi32 comctl32
EXTRADLLFLAGS = -mwindows -mno-cygwin

View File

@ -24,6 +24,7 @@
#include <stdio.h>
#include <windows.h>
#include <commctrl.h>
#include <commdlg.h>
#include <shellapi.h>
#include <shlwapi.h>
@ -750,6 +751,8 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
static const WCHAR className[] = {'N','o','t','e','p','a','d',0};
static const WCHAR winName[] = {'N','o','t','e','p','a','d',0};
InitCommonControls();
aFINDMSGSTRING = RegisterWindowMessageW(FINDMSGSTRINGW);
ZeroMemory(&Globals, sizeof(Globals));

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.Notepad" 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

@ -149,5 +149,8 @@ ID_ACCEL ACCELERATORS
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
/* @makedep: notepad.manifest */
1 RT_MANIFEST notepad.manifest
/* @makedep: notepad.ico */
IDI_NOTEPAD ICON "notepad.ico"