Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qt_windows.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QT_WINDOWS_H
6#define QT_WINDOWS_H
7
8#if 0
9#pragma qt_sync_skip_header_check
10#pragma qt_sync_stop_processing
11#endif
12
13#ifndef WINVER
14# define WINVER 0x0A00 // _WIN32_WINNT_WIN10
15#endif
16#ifndef _WIN32_WINNT
17# define _WIN32_WINNT 0x0A00
18#endif
19#ifndef _WIN32_IE
20# define _WIN32_IE 0x0A00
21#endif
22#ifndef NTDDI_VERSION
23# define NTDDI_VERSION 0x0A00000C // NTDDI_WIN10_NI
24#endif
25
26#ifndef NOMINMAX
27# define NOMINMAX
28#endif
29#include <windows.h>
30
31// already defined when compiled with WINVER >= 0x0500
32#ifndef SPI_SETMENUANIMATION
33#define SPI_SETMENUANIMATION 0x1003
34#endif
35#ifndef SPI_SETMENUFADE
36#define SPI_SETMENUFADE 0x1013
37#endif
38#ifndef SPI_SETCOMBOBOXANIMATION
39#define SPI_SETCOMBOBOXANIMATION 0x1005
40#endif
41#ifndef SPI_SETTOOLTIPANIMATION
42#define SPI_SETTOOLTIPANIMATION 0x1017
43#endif
44#ifndef SPI_SETTOOLTIPFADE
45#define SPI_SETTOOLTIPFADE 0x1019
46#endif
47#ifndef SPI_SETUIEFFECTS
48#define SPI_SETUIEFFECTS 0x103F
49#endif
50#ifndef SPI_GETMENUANIMATION
51#define SPI_GETMENUANIMATION 0x1002
52#endif
53#ifndef SPI_GETMENUFADE
54#define SPI_GETMENUFADE 0x1012
55#endif
56#ifndef SPI_GETCOMBOBOXANIMATION
57#define SPI_GETCOMBOBOXANIMATION 0x1004
58#endif
59#ifndef SPI_GETTOOLTIPANIMATION
60#define SPI_GETTOOLTIPANIMATION 0x1016
61#endif
62#ifndef SPI_GETTOOLTIPFADE
63#define SPI_GETTOOLTIPFADE 0x1018
64#endif
65#ifndef SPI_GETUIEFFECTS
66#define SPI_GETUIEFFECTS 0x103E
67#endif
68#ifndef SPI_GETKEYBOARDCUES
69#define SPI_GETKEYBOARDCUES 0x100A
70#endif
71#ifndef SPI_GETGRADIENTCAPTIONS
72#define SPI_GETGRADIENTCAPTIONS 0x1008
73#endif
74#ifndef IDC_HAND
75#define IDC_HAND MAKEINTRESOURCE(32649)
76#endif
77#ifndef WM_MOUSEWHEEL
78#define WM_MOUSEWHEEL 0x020A
79#endif
80#ifndef WM_MOUSEHWHEEL
81#define WM_MOUSEHWHEEL 0x020E
82#endif
83#ifndef ETO_PDY
84#define ETO_PDY 0x2000
85#endif
86#ifndef COLOR_GRADIENTACTIVECAPTION
87#define COLOR_GRADIENTACTIVECAPTION 27
88#endif
89#ifndef COLOR_GRADIENTINACTIVECAPTION
90#define COLOR_GRADIENTINACTIVECAPTION 28
91#endif
92
93// already defined when compiled with WINVER >= 0x0600
94#ifndef SPI_GETFLATMENU
95#define SPI_GETFLATMENU 0x1022
96#endif
97#ifndef CS_DROPSHADOW
98#define CS_DROPSHADOW 0x00020000
99#endif
100#ifndef CLEARTYPE_QUALITY
101#define CLEARTYPE_QUALITY 5
102#endif
103
104#endif // QT_WINDOWS_H
static constexpr OSType currentType()
Combined button and popup list for selecting options.
OSVERSIONINFOEX qWindowsVersionInfo()
static QT_BEGIN_NAMESPACE OSVERSIONINFOEX determineWinOsVersion()