QtBase  v6.3.1
qt_windows.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2016 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the QtCore module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 3 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 3 requirements
23 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24 **
25 ** GNU General Public License Usage
26 ** Alternatively, this file may be used under the terms of the GNU
27 ** General Public License version 2.0 or (at your option) the GNU General
28 ** Public license version 3 or any later version approved by the KDE Free
29 ** Qt Foundation. The licenses are as published by the Free Software
30 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31 ** included in the packaging of this file. Please review the following
32 ** information to ensure the GNU General Public License requirements will
33 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34 ** https://www.gnu.org/licenses/gpl-3.0.html.
35 **
36 ** $QT_END_LICENSE$
37 **
38 ****************************************************************************/
39 
40 #ifndef QT_WINDOWS_H
41 #define QT_WINDOWS_H
42 
43 #if 0
44 #pragma qt_sync_skip_header_check
45 #pragma qt_sync_stop_processing
46 #endif
47 
48 #ifndef WINVER
49 # define WINVER 0x0A00 // _WIN32_WINNT_WIN10
50 #endif
51 #ifndef _WIN32_WINNT
52 # define _WIN32_WINNT 0x0A00
53 #endif
54 #ifndef _WIN32_IE
55 # define _WIN32_IE 0x0A00
56 #endif
57 #ifndef NTDDI_VERSION
58 # define NTDDI_VERSION 0x0A00000B // NTDDI_WIN10_CO
59 #endif
60 
61 #ifndef NOMINMAX
62 # define NOMINMAX
63 #endif
64 #include <windows.h>
65 
66 // already defined when compiled with WINVER >= 0x0500
67 #ifndef SPI_SETMENUANIMATION
68 #define SPI_SETMENUANIMATION 0x1003
69 #endif
70 #ifndef SPI_SETMENUFADE
71 #define SPI_SETMENUFADE 0x1013
72 #endif
73 #ifndef SPI_SETCOMBOBOXANIMATION
74 #define SPI_SETCOMBOBOXANIMATION 0x1005
75 #endif
76 #ifndef SPI_SETTOOLTIPANIMATION
77 #define SPI_SETTOOLTIPANIMATION 0x1017
78 #endif
79 #ifndef SPI_SETTOOLTIPFADE
80 #define SPI_SETTOOLTIPFADE 0x1019
81 #endif
82 #ifndef SPI_SETUIEFFECTS
83 #define SPI_SETUIEFFECTS 0x103F
84 #endif
85 #ifndef SPI_GETMENUANIMATION
86 #define SPI_GETMENUANIMATION 0x1002
87 #endif
88 #ifndef SPI_GETMENUFADE
89 #define SPI_GETMENUFADE 0x1012
90 #endif
91 #ifndef SPI_GETCOMBOBOXANIMATION
92 #define SPI_GETCOMBOBOXANIMATION 0x1004
93 #endif
94 #ifndef SPI_GETTOOLTIPANIMATION
95 #define SPI_GETTOOLTIPANIMATION 0x1016
96 #endif
97 #ifndef SPI_GETTOOLTIPFADE
98 #define SPI_GETTOOLTIPFADE 0x1018
99 #endif
100 #ifndef SPI_GETUIEFFECTS
101 #define SPI_GETUIEFFECTS 0x103E
102 #endif
103 #ifndef SPI_GETKEYBOARDCUES
104 #define SPI_GETKEYBOARDCUES 0x100A
105 #endif
106 #ifndef SPI_GETGRADIENTCAPTIONS
107 #define SPI_GETGRADIENTCAPTIONS 0x1008
108 #endif
109 #ifndef IDC_HAND
110 #define IDC_HAND MAKEINTRESOURCE(32649)
111 #endif
112 #ifndef WM_MOUSEWHEEL
113 #define WM_MOUSEWHEEL 0x020A
114 #endif
115 #ifndef WM_MOUSEHWHEEL
116 #define WM_MOUSEHWHEEL 0x020E
117 #endif
118 #ifndef ETO_PDY
119 #define ETO_PDY 0x2000
120 #endif
121 #ifndef COLOR_GRADIENTACTIVECAPTION
122 #define COLOR_GRADIENTACTIVECAPTION 27
123 #endif
124 #ifndef COLOR_GRADIENTINACTIVECAPTION
125 #define COLOR_GRADIENTINACTIVECAPTION 28
126 #endif
127 
128 // already defined when compiled with WINVER >= 0x0600
129 #ifndef SPI_GETFLATMENU
130 #define SPI_GETFLATMENU 0x1022
131 #endif
132 #ifndef CS_DROPSHADOW
133 #define CS_DROPSHADOW 0x00020000
134 #endif
135 #ifndef CLEARTYPE_QUALITY
136 #define CLEARTYPE_QUALITY 5
137 #endif
138 
139 #endif // QT_WINDOWS_H