< prev index next >

src/java.desktop/windows/native/libawt/windows/awtmsg.h

Print this page
rev 60071 : 8211999: Window positioning bugs due to overlapping GraphicsDevice bounds (Windows/HiDPI)
Reviewed-by: XXX
   1 /*
   2  * Copyright (c) 1996, 2016, 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         0x0068
  62 #endif //SPI_GETWHEELSCROLLLINES


   1 /*
   2  * Copyright (c) 1996, 2020, 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_DPICHANGED
  45 #define WM_DPICHANGED                   0x02E0
  46 #endif //WM_DPICHANGED
  47 
  48 #ifndef WM_MOUSEWHEEL
  49 #define WM_MOUSEWHEEL                   0x020A
  50 #endif //WM_MOUSEWHEEL
  51 
  52 #ifndef WM_MOUSEHWHEEL
  53 #define WM_MOUSEHWHEEL                  0x020E
  54 #endif //WM_MOUSEHWHEEL
  55 
  56 #ifndef WHEEL_DELTA
  57 #define WHEEL_DELTA                     120
  58 #endif //WHEEL_DELTA
  59 
  60 #ifndef WHEEL_PAGESCROLL
  61 #define WHEEL_PAGESCROLL                (UINT_MAX)
  62 #endif //WHEEL_PAGESCROLL
  63 
  64 #ifndef SPI_GETWHEELSCROLLLINES
  65 #define SPI_GETWHEELSCROLLLINES         0x0068
  66 #endif //SPI_GETWHEELSCROLLLINES


< prev index next >