- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# qt_windows.h

Go to the documentation of this file.

    00001 /****************************************************************************
    00002 **
    00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    00004 ** All rights reserved.
    00005 ** Contact: Nokia Corporation (qt-info@nokia.com)
    00006 **
    00007 ** This file is part of the QtCore module of the Qt Toolkit.
    00008 **
    00009 ** $QT_BEGIN_LICENSE:LGPL$
    00010 ** Commercial Usage
    00011 ** Licensees holding valid Qt Commercial licenses may use this file in
    00012 ** accordance with the Qt Commercial License Agreement provided with the
    00013 ** Software or, alternatively, in accordance with the terms contained in
    00014 ** a written agreement between you and Nokia.
    00015 **
    00016 ** GNU Lesser General Public License Usage
    00017 ** Alternatively, this file may be used under the terms of the GNU Lesser
    00018 ** General Public License version 2.1 as published by the Free Software
    00019 ** Foundation and appearing in the file LICENSE.LGPL included in the
    00020 ** packaging of this file.  Please review the following information to
    00021 ** ensure the GNU Lesser General Public License version 2.1 requirements
    00022 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    00023 **
    00024 ** In addition, as a special exception, Nokia gives you certain additional
    00025 ** rights.  These rights are described in the Nokia Qt LGPL Exception
    00026 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this module.
    00027 **
    00028 ** GNU General Public License Usage
    00029 ** Alternatively, this file may be used under the terms of the GNU
    00030 ** General Public License version 3.0 as published by the Free Software
    00031 ** Foundation and appearing in the file LICENSE.GPL included in the
    00032 ** packaging of this file.  Please review the following information to
    00033 ** ensure the GNU General Public License version 3.0 requirements will be
    00034 ** met: http://www.gnu.org/copyleft/gpl.html.
    00035 **
    00036 ** If you have questions regarding the use of this file, please contact
    00037 ** Nokia at qt-info@nokia.com.
    00038 ** $QT_END_LICENSE$
    00039 **
    00040 ****************************************************************************/
    00041
    00042 #ifndef QT_WINDOWS_H
    00043 #define QT_WINDOWS_H
    00044
    00045 #if defined(Q_CC_BOR)
    00046 // Borland's windows.h does not set these correctly, resulting in
    00047 // unusable WinSDK standard dialogs
    00048 #ifndef WINVER
    00049 #define WINVER 0x400
    00050 #endif
    00051 #ifndef _WIN32_WINNT
    00052 #define _WIN32_WINNT 0x400
    00053 #endif
    00054 #endif
    00055
    00056 #if defined(Q_CC_MINGW)
    00057 // mingw's windows.h does not set _WIN32_WINNT, resulting breaking compilation
    00058 #ifndef WINVER
    00059 #define WINVER 0x500
    00060 #endif
    00061 #endif
    00062
    00063 #include <windows.h>
    00064
    00065 #ifdef _WIN32_WCE
    00066 #include <ceconfig.h>
    00067 #endif
    00068
    00069 // already defined when compiled with WINVER >= 0x0500
    00070 #ifndef SPI_SETMENUANIMATION
    00071 #define SPI_SETMENUANIMATION 0x1003
    00072 #endif
    00073 #ifndef SPI_SETMENUFADE
    00074 #define SPI_SETMENUFADE 0x1013
    00075 #endif
    00076 #ifndef SPI_SETCOMBOBOXANIMATION
    00077 #define SPI_SETCOMBOBOXANIMATION 0x1005
    00078 #endif
    00079 #ifndef SPI_SETTOOLTIPANIMATION
    00080 #define SPI_SETTOOLTIPANIMATION 0x1017
    00081 #endif
    00082 #ifndef SPI_SETTOOLTIPFADE
    00083 #define SPI_SETTOOLTIPFADE 0x1019
    00084 #endif
    00085 #ifndef SPI_SETUIEFFECTS
    00086 #define SPI_SETUIEFFECTS 0x103F
    00087 #endif
    00088 #ifndef SPI_GETMENUANIMATION
    00089 #define SPI_GETMENUANIMATION 0x1002
    00090 #endif
    00091 #ifndef SPI_GETMENUFADE
    00092 #define SPI_GETMENUFADE 0x1012
    00093 #endif
    00094 #ifndef SPI_GETCOMBOBOXANIMATION
    00095 #define SPI_GETCOMBOBOXANIMATION 0x1004
    00096 #endif
    00097 #ifndef SPI_GETTOOLTIPANIMATION
    00098 #define SPI_GETTOOLTIPANIMATION 0x1016
    00099 #endif
    00100 #ifndef SPI_GETTOOLTIPFADE
    00101 #define SPI_GETTOOLTIPFADE 0x1018
    00102 #endif
    00103 #ifndef SPI_GETUIEFFECTS
    00104 #define SPI_GETUIEFFECTS 0x103E
    00105 #endif
    00106 #ifndef SPI_GETKEYBOARDCUES
    00107 #define SPI_GETKEYBOARDCUES 0x100A
    00108 #endif
    00109 #ifndef SPI_GETGRADIENTCAPTIONS
    00110 #define SPI_GETGRADIENTCAPTIONS 0x1008
    00111 #endif
    00112 #ifndef IDC_HAND
    00113 #define IDC_HAND MAKEINTRESOURCE(32649)
    00114 #endif
    00115 #ifndef WM_MOUSEWHEEL
    00116 #define WM_MOUSEWHEEL 0x020A
    00117 #endif
    00118 #ifndef WM_MOUSEHWHEEL
    00119 #define WM_MOUSEHWHEEL 0x020E
    00120 #endif
    00121 #ifndef ETO_PDY
    00122 #define ETO_PDY 0x2000
    00123 #endif
    00124 #ifndef COLOR_GRADIENTACTIVECAPTION
    00125 #define COLOR_GRADIENTACTIVECAPTION 27
    00126 #endif
    00127 #ifndef COLOR_GRADIENTINACTIVECAPTION
    00128 #define COLOR_GRADIENTINACTIVECAPTION 28
    00129 #endif
    00130
    00131 // already defined when compiled with WINVER >= 0x0600
    00132 #ifndef SPI_GETFLATMENU
    00133 #define SPI_GETFLATMENU 0x1022
    00134 #endif
    00135 #ifndef CS_DROPSHADOW
    00136 #define CS_DROPSHADOW 0x00020000
    00137 #endif
    00138 #ifndef CLEARTYPE_QUALITY
    00139 #define CLEARTYPE_QUALITY 5
    00140 #endif
    00141
    00142 #ifdef Q_WS_WINCE
    00143 #ifndef LR_DEFAULTSIZE
    00144 #define LR_DEFAULTSIZE 0
    00145 #endif
    00146 #ifndef LR_SHARED
    00147 #define LR_SHARED 0
    00148 #endif
    00149 #endif // Q_WS_WINCE
    00150
    00151 #endif // QT_WINDOWS_H