mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 07:57:22 +00:00
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:
parent
ed98e3b51b
commit
026a6ff2be
|
@ -1,5 +1,5 @@
|
||||||
MODULE = notepad.exe
|
MODULE = notepad.exe
|
||||||
IMPORTS = comdlg32 shell32 shlwapi user32 gdi32 advapi32
|
IMPORTS = comdlg32 shell32 shlwapi user32 gdi32 advapi32 comctl32
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mwindows -mno-cygwin
|
EXTRADLLFLAGS = -mwindows -mno-cygwin
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <commctrl.h>
|
||||||
#include <commdlg.h>
|
#include <commdlg.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include <shlwapi.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 className[] = {'N','o','t','e','p','a','d',0};
|
||||||
static const WCHAR winName[] = {'N','o','t','e','p','a','d',0};
|
static const WCHAR winName[] = {'N','o','t','e','p','a','d',0};
|
||||||
|
|
||||||
|
InitCommonControls();
|
||||||
|
|
||||||
aFINDMSGSTRING = RegisterWindowMessageW(FINDMSGSTRINGW);
|
aFINDMSGSTRING = RegisterWindowMessageW(FINDMSGSTRINGW);
|
||||||
|
|
||||||
ZeroMemory(&Globals, sizeof(Globals));
|
ZeroMemory(&Globals, sizeof(Globals));
|
||||||
|
|
16
programs/notepad/notepad.manifest
Normal file
16
programs/notepad/notepad.manifest
Normal 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>
|
|
@ -149,5 +149,8 @@ ID_ACCEL ACCELERATORS
|
||||||
|
|
||||||
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
|
|
||||||
|
/* @makedep: notepad.manifest */
|
||||||
|
1 RT_MANIFEST notepad.manifest
|
||||||
|
|
||||||
/* @makedep: notepad.ico */
|
/* @makedep: notepad.ico */
|
||||||
IDI_NOTEPAD ICON "notepad.ico"
|
IDI_NOTEPAD ICON "notepad.ico"
|
||||||
|
|
Loading…
Reference in a new issue