| 1 |
/**************************************************************************** |
| 2 |
** |
| 3 |
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). |
| 4 |
** All rights reserved. |
| 5 |
** Contact: Nokia Corporation (qt-info@nokia.com) |
| 6 |
** |
| 7 |
** This file is part of the QtCore module of the Qt Toolkit. |
| 8 |
** |
| 9 |
** $QT_BEGIN_LICENSE:LGPL$ |
| 10 |
** GNU Lesser General Public License Usage |
| 11 |
** This file may be used under the terms of the GNU Lesser General Public |
| 12 |
** License version 2.1 as published by the Free Software Foundation and |
| 13 |
** appearing in the file LICENSE.LGPL included in the packaging of this |
| 14 |
** file. Please review the following information to ensure the GNU Lesser |
| 15 |
** General Public License version 2.1 requirements will be met: |
| 16 |
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
| 17 |
** |
| 18 |
** In addition, as a special exception, Nokia gives you certain additional |
| 19 |
** rights. These rights are described in the Nokia Qt LGPL Exception |
| 20 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
| 21 |
** |
| 22 |
** GNU General Public License Usage |
| 23 |
** Alternatively, this file may be used under the terms of the GNU General |
| 24 |
** Public License version 3.0 as published by the Free Software Foundation |
| 25 |
** and appearing in the file LICENSE.GPL included in the packaging of this |
| 26 |
** file. Please review the following information to ensure the GNU General |
| 27 |
** Public License version 3.0 requirements will be met: |
| 28 |
** http://www.gnu.org/copyleft/gpl.html. |
| 29 |
** |
| 30 |
** Other Usage |
| 31 |
** Alternatively, this file may be used in accordance with the terms and |
| 32 |
** conditions contained in a signed written agreement between you and Nokia. |
| 33 |
** |
| 34 |
** |
| 35 |
** |
| 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 |