Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/zmouse.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 1 /** | |
| 2 * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 * This file is part of the w64 mingw-runtime package. | |
| 4 * No warranty is given; refer to the file DISCLAIMER within this package. | |
| 5 */ | |
| 6 #ifdef UNICODE | |
| 7 #define MSH_MOUSEWHEEL L"MSWHEEL_ROLLMSG" | |
| 8 #else | |
| 9 #define MSH_MOUSEWHEEL "MSWHEEL_ROLLMSG" | |
| 10 #endif | |
| 11 | |
| 12 #define WHEEL_DELTA 120 | |
| 13 | |
| 14 #ifndef WM_MOUSEWHEEL | |
| 15 #define WM_MOUSEWHEEL (WM_MOUSELAST+1) | |
| 16 #endif | |
| 17 | |
| 18 #ifdef UNICODE | |
| 19 #define MOUSEZ_CLASSNAME L"MouseZ" | |
| 20 #define MOUSEZ_TITLE L"Magellan MSWHEEL" | |
| 21 #else | |
| 22 #define MOUSEZ_CLASSNAME "MouseZ" | |
| 23 #define MOUSEZ_TITLE "Magellan MSWHEEL" | |
| 24 #endif | |
| 25 | |
| 26 #define MSH_WHEELMODULE_CLASS (MOUSEZ_CLASSNAME) | |
| 27 #define MSH_WHEELMODULE_TITLE (MOUSEZ_TITLE) | |
| 28 | |
| 29 #ifdef UNICODE | |
| 30 #define MSH_WHEELSUPPORT L"MSH_WHEELSUPPORT_MSG" | |
| 31 #else | |
| 32 #define MSH_WHEELSUPPORT "MSH_WHEELSUPPORT_MSG" | |
| 33 #endif | |
| 34 | |
| 35 #ifdef UNICODE | |
| 36 #define MSH_SCROLL_LINES L"MSH_SCROLL_LINES_MSG" | |
| 37 #else | |
| 38 #define MSH_SCROLL_LINES "MSH_SCROLL_LINES_MSG" | |
| 39 #endif | |
| 40 | |
| 41 #ifndef WHEEL_PAGESCROLL | |
| 42 #define WHEEL_PAGESCROLL (UINT_MAX) | |
| 43 #endif | |
| 44 | |
| 45 #ifndef SPI_SETWHEELSCROLLLINES | |
| 46 #define SPI_SETWHEELSCROLLLINES 105 | |
| 47 #endif | |
| 48 | |
| 49 #ifndef __CRT__NO_INLINE | |
| 50 __CRT_INLINE HWND HwndMSWheel(PUINT puiMsh_MsgMouseWheel,PUINT puiMsh_Msg3DSupport,PUINT puiMsh_MsgScrollLines,PBOOL pf3DSupport,PINT piScrollLines) { | |
| 51 HWND hdlMsWheel; | |
| 52 hdlMsWheel = FindWindow(MSH_WHEELMODULE_CLASS,MSH_WHEELMODULE_TITLE); | |
| 53 *puiMsh_MsgMouseWheel = RegisterWindowMessage(MSH_MOUSEWHEEL); | |
| 54 *puiMsh_Msg3DSupport = RegisterWindowMessage(MSH_WHEELSUPPORT); | |
| 55 *puiMsh_MsgScrollLines = RegisterWindowMessage(MSH_SCROLL_LINES); | |
| 56 if(*puiMsh_Msg3DSupport) *pf3DSupport = (WINBOOL)SendMessage(hdlMsWheel,*puiMsh_Msg3DSupport,0,0); | |
| 57 else *pf3DSupport = FALSE; | |
| 58 if(*puiMsh_MsgScrollLines) *piScrollLines = (int)SendMessage(hdlMsWheel,*puiMsh_MsgScrollLines,0,0); | |
| 59 else *piScrollLines = 3; | |
| 60 return(hdlMsWheel); | |
| 61 } | |
| 62 #endif /* !__CRT__NO_INLINE */ | |
| 63 |
