Commit 7af0ab05 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

dxdiag: Enable visual styles.

parent d576879f
MODULE = dxdiag.exe MODULE = dxdiag.exe
IMPORTS = dxguid ole32 oleaut32 user32 IMPORTS = dxguid ole32 oleaut32 user32 comctl32
EXTRADLLFLAGS = -mwindows -municode -mno-cygwin EXTRADLLFLAGS = -mwindows -municode -mno-cygwin
......
<?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.Dxdiag" 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>
...@@ -29,3 +29,6 @@ STRINGTABLE ...@@ -29,3 +29,6 @@ STRINGTABLE
STRING_DXDIAG_TOOL, "DirectX Diagnostic Tool" STRING_DXDIAG_TOOL, "DirectX Diagnostic Tool"
STRING_USAGE, "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]" STRING_USAGE, "Usage: dxdiag [/whql:off | /whql:on] [/t filename | /x filename]"
} }
/* @makedep: dxdiag.manifest */
1 RT_MANIFEST dxdiag.manifest
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include <windef.h> #include <windef.h>
#include <winuser.h>
/* Resource definitions. */ /* Resource definitions. */
#define MAX_STRING_LEN 1024 #define MAX_STRING_LEN 1024
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <dxdiag.h> #include <dxdiag.h>
#include <commctrl.h>
#include "wine/debug.h" #include "wine/debug.h"
#include "dxdiag_private.h" #include "dxdiag_private.h"
...@@ -180,6 +181,8 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm ...@@ -180,6 +181,8 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
struct command_line_info info; struct command_line_info info;
struct dxdiag_information *dxdiag_info; struct dxdiag_information *dxdiag_info;
InitCommonControls();
hInstance = hInst; hInstance = hInst;
if (!process_command_line(cmdline, &info)) if (!process_command_line(cmdline, &info))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment