mirror of
https://github.com/reactos/reactos.git
synced 2024-06-17 10:01:58 +00:00
[WINVER] Fix WINVER theming. CORE-13343 (#1428)
Use and initialize common controls for theming support, and include a manifest as well.
This commit is contained in:
parent
65239bcf4b
commit
3747699735
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
add_executable(winver winver.c winver.rc)
|
add_executable(winver winver.c winver.rc)
|
||||||
set_module_type(winver win32gui UNICODE)
|
set_module_type(winver win32gui UNICODE)
|
||||||
add_importlibs(winver shell32 msvcrt kernel32)
|
add_importlibs(winver shell32 comctl32 msvcrt kernel32)
|
||||||
add_cd_file(TARGET winver DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET winver DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -7,14 +7,23 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
|
#include <winuser.h>
|
||||||
|
#include <commctrl.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
|
|
||||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
|
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
|
||||||
{
|
{
|
||||||
|
INITCOMMONCONTROLSEX iccx;
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(hInstance);
|
UNREFERENCED_PARAMETER(hInstance);
|
||||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||||
UNREFERENCED_PARAMETER(nCmdShow);
|
UNREFERENCED_PARAMETER(nCmdShow);
|
||||||
|
|
||||||
|
/* Initialize common controls */
|
||||||
|
iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
||||||
|
iccx.dwICC = ICC_STANDARD_CLASSES | ICC_WIN95_CLASSES;
|
||||||
|
InitCommonControlsEx(&iccx);
|
||||||
|
|
||||||
return ShellAboutW(NULL, L"ReactOS", NULL, NULL);
|
return ShellAboutW(NULL, L"ReactOS", NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
|
||||||
|
#include <windef.h>
|
||||||
|
#include <winuser.h>
|
||||||
|
|
||||||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Version Program"
|
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Version Program"
|
||||||
#define REACTOS_STR_INTERNAL_NAME "winver"
|
#define REACTOS_STR_INTERNAL_NAME "winver"
|
||||||
#define REACTOS_STR_ORIGINAL_FILENAME "winver.exe"
|
#define REACTOS_STR_ORIGINAL_FILENAME "winver.exe"
|
||||||
#include <reactos/version.rc>
|
#include <reactos/version.rc>
|
||||||
|
|
||||||
|
#include <reactos/manifest_exe.rc>
|
||||||
|
|
Loading…
Reference in a new issue