Qt 4.8
qt_windows.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
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 Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/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 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 #ifndef QT_WINDOWS_H
43 #define QT_WINDOWS_H
44 
45 #if defined(Q_CC_BOR)
46 // Borland's windows.h does not set these correctly, resulting in
47 // unusable WinSDK standard dialogs
48 #ifndef WINVER
49 #define WINVER 0x400
50 #endif
51 #ifndef _WIN32_WINNT
52 #define _WIN32_WINNT 0x400
53 #endif
54 #endif
55 
56 #if defined(Q_CC_MINGW)
57 // mingw's windows.h does not set _WIN32_WINNT, resulting breaking compilation
58 #ifndef WINVER
59 #define WINVER 0x500
60 #endif
61 #endif
62 
63 #include <windows.h>
64 
65 #ifdef _WIN32_WCE
66 #include <ceconfig.h>
67 #endif
68 
69 // already defined when compiled with WINVER >= 0x0500
70 #ifndef SPI_SETMENUANIMATION
71 #define SPI_SETMENUANIMATION 0x1003
72 #endif
73 #ifndef SPI_SETMENUFADE
74 #define SPI_SETMENUFADE 0x1013
75 #endif
76 #ifndef SPI_SETCOMBOBOXANIMATION
77 #define SPI_SETCOMBOBOXANIMATION 0x1005
78 #endif
79 #ifndef SPI_SETTOOLTIPANIMATION
80 #define SPI_SETTOOLTIPANIMATION 0x1017
81 #endif
82 #ifndef SPI_SETTOOLTIPFADE
83 #define SPI_SETTOOLTIPFADE 0x1019
84 #endif
85 #ifndef SPI_SETUIEFFECTS
86 #define SPI_SETUIEFFECTS 0x103F
87 #endif
88 #ifndef SPI_GETMENUANIMATION
89 #define SPI_GETMENUANIMATION 0x1002
90 #endif
91 #ifndef SPI_GETMENUFADE
92 #define SPI_GETMENUFADE 0x1012
93 #endif
94 #ifndef SPI_GETCOMBOBOXANIMATION
95 #define SPI_GETCOMBOBOXANIMATION 0x1004
96 #endif
97 #ifndef SPI_GETTOOLTIPANIMATION
98 #define SPI_GETTOOLTIPANIMATION 0x1016
99 #endif
100 #ifndef SPI_GETTOOLTIPFADE
101 #define SPI_GETTOOLTIPFADE 0x1018
102 #endif
103 #ifndef SPI_GETUIEFFECTS
104 #define SPI_GETUIEFFECTS 0x103E
105 #endif
106 #ifndef SPI_GETKEYBOARDCUES
107 #define SPI_GETKEYBOARDCUES 0x100A
108 #endif
109 #ifndef SPI_GETGRADIENTCAPTIONS
110 #define SPI_GETGRADIENTCAPTIONS 0x1008
111 #endif
112 #ifndef IDC_HAND
113 #define IDC_HAND MAKEINTRESOURCE(32649)
114 #endif
115 #ifndef WM_MOUSEWHEEL
116 #define WM_MOUSEWHEEL 0x020A
117 #endif
118 #ifndef WM_MOUSEHWHEEL
119 #define WM_MOUSEHWHEEL 0x020E
120 #endif
121 #ifndef ETO_PDY
122 #define ETO_PDY 0x2000
123 #endif
124 #ifndef COLOR_GRADIENTACTIVECAPTION
125 #define COLOR_GRADIENTACTIVECAPTION 27
126 #endif
127 #ifndef COLOR_GRADIENTINACTIVECAPTION
128 #define COLOR_GRADIENTINACTIVECAPTION 28
129 #endif
130 
131 // already defined when compiled with WINVER >= 0x0600
132 #ifndef SPI_GETFLATMENU
133 #define SPI_GETFLATMENU 0x1022
134 #endif
135 #ifndef CS_DROPSHADOW
136 #define CS_DROPSHADOW 0x00020000
137 #endif
138 #ifndef CLEARTYPE_QUALITY
139 #define CLEARTYPE_QUALITY 5
140 #endif
141 
142 #ifdef Q_WS_WINCE
143 #ifndef LR_DEFAULTSIZE
144 #define LR_DEFAULTSIZE 0
145 #endif
146 #ifndef LR_SHARED
147 #define LR_SHARED 0
148 #endif
149 #endif // Q_WS_WINCE
150 
151 #endif // QT_WINDOWS_H