1 /* 2 * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 #ifndef AWTMSG_H 27 #define AWTMSG_H 28 29 #include <awt.h> 30 31 extern const UINT SYSCOMMAND_IMM; 32 33 /* 34 * #defines for MouseWheel support 35 * 36 * Most of this is defined in winuser.h, however 37 * it is enclosed by #ifdefs that aren't true 38 * for all windows platforms. To ensure that 39 * necessary #defines are always available, 40 * they're defined here as necessary. 41 * See winuser.h for details. 42 */ 43 44 #ifndef WM_MOUSEWHEEL 45 #define WM_MOUSEWHEEL 0x020A 46 #endif //WM_MOUSEWHEEL 47 48 #ifndef WM_MOUSEHWHEEL 49 #define WM_MOUSEHWHEEL 0x020E 50 #endif //WM_MOUSEHWHEEL 51 52 #ifndef WHEEL_DELTA 53 #define WHEEL_DELTA 120 54 #endif //WHEEL_DELTA 55 56 #ifndef WHEEL_PAGESCROLL 57 #define WHEEL_PAGESCROLL (UINT_MAX) 58 #endif //WHEEL_PAGESCROLL 59 60 #ifndef SPI_GETWHEELSCROLLLINES 61 #define SPI_GETWHEELSCROLLLINES 104 62 #endif //SPI_GETWHEELSCROLLLINES 63 64 #ifndef SM_MOUSEWHEELPRESENT 65 #define SM_MOUSEWHEELPRESENT 75 66 #endif //SPI_GETWHEELSCROLLLINES 67 68 #ifndef COLOR_HOTLIGHT 69 #define COLOR_HOTLIGHT 26 70 #endif //COLOR_HOTLIGHT 71 72 #ifndef COLOR_GRADIENTACTIVECAPTION 73 #define COLOR_GRADIENTACTIVECAPTION 27 74 #endif //COLOR_GRADIENTACTIVECAPTION 75 76 #ifndef COLOR_GRADIENTINACTIVECAPTION 77 #define COLOR_GRADIENTINACTIVECAPTION 28 78 #endif //COLOR_GRADIENTINACTIVECAPTION 79 80 #ifndef SPI_GETACTIVEWINDOWTRACKING 81 #define SPI_GETACTIVEWINDOWTRACKING 0x1000 82 #endif //SPI_GETACTIVEWINDOWTRACKING 83 84 #ifndef SPI_GETMENUANIMATION 85 #define SPI_GETMENUANIMATION 0x1002 86 #endif //SPI_GETMENUANIMATION 87 88 #ifndef SPI_GETCOMBOBOXANIMATION 89 #define SPI_GETCOMBOBOXANIMATION 0x1004 90 #endif //SPI_GETCOMBOBOXANIMATION 91 92 #ifndef SPI_GETLISTBOXSMOOTHSCROLLING 93 #define SPI_GETLISTBOXSMOOTHSCROLLING 0x1006 94 #endif //SPI_GETLISTBOXSMOOTHSCROLLING 95 96 #ifndef SPI_GETGRADIENTCAPTIONS 97 #define SPI_GETGRADIENTCAPTIONS 0x1008 98 #endif //SPI_GETGRADIENTCAPTIONS 99 100 #ifndef SPI_GETKEYBOARDCUES 101 #define SPI_GETKEYBOARDCUES 0x100A 102 #endif //SPI_GETKEYBOARDCUES 103 104 #ifndef SPI_GETACTIVEWNDTRKZORDER 105 #define SPI_GETACTIVEWNDTRKZORDER 0x100C 106 #endif //SPI_GETACTIVEWNDTRKZORDER 107 108 #ifndef SPI_GETHOTTRACKING 109 #define SPI_GETHOTTRACKING 0x100E 110 #endif //SPI_GETHOTTRACKING 111 112 #ifndef SPI_GETMENUFADE 113 #define SPI_GETMENUFADE 0x1012 114 #endif //SPI_GETMENUFADE 115 116 #ifndef SPI_GETSELECTIONFADE 117 #define SPI_GETSELECTIONFADE 0x1014 118 #endif //SPI_GETSELECTIONFADE 119 120 #ifndef SPI_GETTOOLTIPANIMATION 121 #define SPI_GETTOOLTIPANIMATION 0x1016 122 #endif //SPI_GETTOOLTIPANIMATION 123 124 #ifndef SPI_GETTOOLTIPFADE 125 #define SPI_GETTOOLTIPFADE 0x1018 126 #endif //SPI_GETTOOLTIPFADE 127 128 #ifndef SPI_GETFOREGROUNDLOCKTIMEOUT 129 #define SPI_GETFOREGROUNDLOCKTIMEOUT 0x2000 130 #endif //SPI_GETFOREGROUNDLOCKTIMEOUT 131 132 #ifndef SPI_GETACTIVEWNDTRKTIMEOUT 133 #define SPI_GETACTIVEWNDTRKTIMEOUT 0x2002 134 #endif //SPI_GETACTIVEWNDTRKTIMEOUT 135 136 #ifndef SPI_GETFOREGROUNDFLASHCOUNT 137 #define SPI_GETFOREGROUNDFLASHCOUNT 0x2004 138 #endif //SPI_GETFOREGROUNDFLASHCOUNT 139 140 #ifndef SPI_GETFONTSMOOTHINGTYPE 141 #define SPI_GETFONTSMOOTHINGTYPE 0x200A 142 #endif //SPI_GETFONTSMOOTHINGTYPE 143 144 #ifndef SPI_GETFONTSMOOTHINGCONTRAST 145 #define SPI_GETFONTSMOOTHINGCONTRAST 0x200C 146 #endif //SPI_GETFONTSMOOTHINGCONTRAST 147 148 149 // 150 // Flags for AnimateWindow 151 // 152 #ifndef AW_HOR_POSITIVE 153 #define AW_HOR_POSITIVE 0x00000001 154 #endif //AW_HOR_POSITIVE 155 156 #ifndef AW_HOR_NEGATIVE 157 #define AW_HOR_NEGATIVE 0x00000002 158 #endif //AW_HOR_NEGATIVE 159 160 #ifndef AW_VER_POSITIVE 161 #define AW_VER_POSITIVE 0x00000004 162 #endif //AW_VER_POSITIVE 163 164 #ifndef AW_VER_NEGATIVE 165 #define AW_VER_NEGATIVE 0x00000008 166 #endif //AW_VER_NEGATIVE 167 168 #ifndef AW_CENTER 169 #define AW_CENTER 0x00000010 170 #endif //AW_CENTER 171 172 #ifndef AW_HIDE 173 #define AW_HIDE 0x00010000 174 #endif //AW_HIDE 175 176 #ifndef AW_ACTIVATE 177 #define AW_ACTIVATE 0x00020000 178 #endif //AW_ACTIVATE 179 180 #ifndef AW_SLIDE 181 #define AW_SLIDE 0x00040000 182 #endif //AW_SLIDE 183 184 #ifndef AW_BLEND 185 #define AW_BLEND 0x00080000 186 #endif //AW_BLEND 187 188 189 // AwtComponent messages 190 enum { 191 // 6427323: unfortunately WM_APP+nnn conflicts with edit control messages 192 // on XP with IME support, so we're shifting our messages 193 // to some random value just to avoid the conflict 194 WM_AWT_COMPONENT_CREATE = WM_APP+0x1800, 195 WM_AWT_DESTROY_WINDOW, 196 WM_AWT_MOUSEENTER, 197 WM_AWT_MOUSEEXIT, 198 WM_AWT_COMPONENT_SHOW, 199 WM_AWT_COMPONENT_HIDE, 200 WM_AWT_COMPONENT_SETFOCUS, 201 WM_AWT_WINDOW_SETACTIVE, 202 WM_AWT_LIST_SETMULTISELECT, 203 WM_AWT_HANDLE_EVENT, 204 WM_AWT_PRINT_COMPONENT, 205 WM_AWT_RESHAPE_COMPONENT, 206 WM_AWT_SETALWAYSONTOP, 207 WM_AWT_BEGIN_VALIDATE, 208 WM_AWT_END_VALIDATE, 209 WM_AWT_FORWARD_CHAR, 210 WM_AWT_FORWARD_BYTE, 211 WM_AWT_SET_SCROLL_INFO, 212 WM_AWT_CREATECONTEXT, 213 WM_AWT_DESTROYCONTEXT, 214 WM_AWT_ASSOCIATECONTEXT, 215 WM_AWT_GET_DEFAULT_IME_HANDLER, 216 WM_AWT_HANDLE_NATIVE_IME_EVENT, 217 WM_AWT_PRE_KEYDOWN, 218 WM_AWT_PRE_KEYUP, 219 WM_AWT_PRE_SYSKEYDOWN, 220 WM_AWT_PRE_SYSKEYUP, 221 222 /* deleted DND mesg's */ 223 224 WM_AWT_ENDCOMPOSITION, 225 WM_AWT_DISPOSE, 226 WM_AWT_DISPOSEPDATA, 227 WM_AWT_DELETEOBJECT, 228 WM_AWT_SETCONVERSIONSTATUS, 229 WM_AWT_GETCONVERSIONSTATUS, 230 WM_AWT_SETOPENSTATUS, 231 WM_AWT_GETOPENSTATUS, 232 WM_AWT_ACTIVATEKEYBOARDLAYOUT, 233 WM_AWT_OPENCANDIDATEWINDOW, 234 WM_AWT_DLG_SHOWMODAL, 235 WM_AWT_DLG_ENDMODAL, 236 WM_AWT_SETCURSOR, 237 WM_AWT_WAIT_FOR_SINGLE_OBJECT, 238 WM_AWT_INVOKE_METHOD, 239 WM_AWT_INVOKE_VOID_METHOD, 240 WM_AWT_EXECUTE_SYNC, 241 WM_AWT_OBJECTLISTCLEANUP, 242 243 WM_AWT_CURSOR_SYNC, 244 WM_AWT_GETDC, 245 WM_AWT_RELEASEDC, 246 WM_AWT_RELEASE_ALL_DCS, 247 WM_AWT_SHOWCURSOR, 248 WM_AWT_HIDECURSOR, 249 WM_AWT_CREATE_PRINTED_PIXELS, 250 251 // Tray messages 252 WM_AWT_TRAY_NOTIFY, 253 254 WM_SYNC_WAIT 255 }; 256 257 #ifndef WM_UNDOCUMENTED_CLICKMENUBAR 258 #define WM_UNDOCUMENTED_CLICKMENUBAR 0x0313 259 #endif 260 261 #ifndef WM_UNDOCUMENTED_CLIENTSHUTDOWN 262 #define WM_UNDOCUMENTED_CLIENTSHUTDOWN 0x003b 263 #endif 264 265 #endif // AWTMSG_H