Commit d576879f authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

control: Enable visual styles.

parent 148d4048
MODULE = control.exe
IMPORTS = shell32 user32
IMPORTS = shell32 user32 comctl32
EXTRADLLFLAGS = -mwindows -municode -mno-cygwin
C_SRCS = control.c
RC_SRCS = control.rc
......@@ -24,6 +24,7 @@
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <commctrl.h>
#include <shellapi.h>
......@@ -37,6 +38,8 @@ static void launch(LPCWSTR what)
int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrev, LPWSTR lpszCmdLine, INT nCmdShow)
{
InitCommonControls();
/* no parameters - pop up whole "Control Panel" by default */
if (!*lpszCmdLine) {
launch(lpszCmdLine);
......
<?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.Control" 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>
/*
* Control resources
*
* Copyright 2021 Zhiyi Zhang for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <windef.h>
#include <winuser.h>
/* @makedep: control.manifest */
1 RT_MANIFEST control.manifest
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