Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
3.9 KiB

  1. /******************************************************************************\
  2. * ZMOUSE.H - Include file for MSDELTA Zoom mouse DLL.
  3. *
  4. * AUTHOR - Paul Henderson, July 1995
  5. * Lora McCambridge January 1996
  6. * REVISIONS -
  7. * Lora McCambridge April 1996 - removing WM_MOUSEWHEEL, this
  8. * message will only be available via the OS. Applications
  9. * must now register the message MSH_MOUSEWHEEL, and
  10. * use that message for messages from MSWHEEL.
  11. * LKM May 1996 - Added add'l #defines for class and title of the wheel
  12. * module window to reflect the MSH_ style.
  13. * - Added #defines for WHEEL SUPPORT and Scroll Lines
  14. * - Added inline function HwndMsWheel, apps can use
  15. * this function to retrieve the handle to mswheel,
  16. * get the message ID's for the registered messages,
  17. * the flag for 3d support, and the value for scroll
  18. * lines. Please in function at end of file.
  19. *
  20. * Copyright (C) 1995, 1996 Microsoft Corporation.
  21. * All rights reserved.
  22. \******************************************************************************/
  23. /**************************************************************************
  24. Client Appplication (API) Defines for Wheel rolling
  25. ***************************************************************************/
  26. // Apps need to call RegisterWindowMessage using the #define below to
  27. // get the message number that is sent to the foreground window
  28. // when a wheel roll occurs
  29. #define MSH_MOUSEWHEEL "MSWHEEL_ROLLMSG"
  30. // wParam = zDelta expressed in multiples of WHEEL_DELTA
  31. // lParam is the mouse coordinates
  32. #define WHEEL_DELTA 120 // Default value for rolling one detent
  33. #ifndef WM_MOUSEWHEEL
  34. #define WM_MOUSEWHEEL (WM_MOUSELAST+1) // message that will be supported
  35. // by the OS
  36. #endif
  37. /**************************************************************************
  38. Client Appplication (API) Defines for
  39. determining 3D support active
  40. determining # of Scroll Lines
  41. ***************************************************************************/
  42. // Class name for Magellan/Z MSWHEEL window
  43. // use FindWindow to get hwnd to MSWHEEL
  44. #define MOUSEZ_CLASSNAME "MouseZ" // wheel window class
  45. #define MOUSEZ_TITLE "Magellan MSWHEEL" // wheel window title
  46. #define MSH_WHEELMODULE_CLASS (MOUSEZ_CLASSNAME)
  47. #define MSH_WHEELMODULE_TITLE (MOUSEZ_TITLE)
  48. // Apps need to call RegisterWindowMessage using the #defines below to
  49. // get the message number that can be sent to the MSWHEEL window to
  50. // query if wheel support is active (MSH_WHEELSUPPORT), and the message
  51. // number to query the number of scroll lines (MSH_SCROLLLINES).
  52. // To send a message to MSWheel window, use FindWindow with the #defines
  53. // for CLASS and TITLE above. If FindWindow fails to find the MSWHEEL
  54. // window or the return from SendMessage is false, then Wheel support
  55. // is currently not available.
  56. #define MSH_WHEELSUPPORT "MSH_WHEELSUPPORT_MSG" // name of msg to send
  57. // to query for wheel support
  58. // MSH_WHEELSUPPORT
  59. // wParam - not used
  60. // lParam - not used
  61. // returns BOOL - TRUE if wheel support is active, FALSE otherwise
  62. #define MSH_SCROLL_LINES "MSH_SCROLL_LINES_MSG"
  63. // MSH_SCROLL_LINES
  64. // wParam - not used
  65. // lParam - not used
  66. // returns int - number of lines to scroll on a wheel roll
  67. #ifndef WHEEL_PAGESCROLL
  68. #define WHEEL_PAGESCROLL (UINT_MAX) // signifies to scroll a page, to
  69. // be defined in updated winuser.h
  70. // in SDK release for NT4.0
  71. #endif
  72. // NB!! The remainder of the original header file has been deleted since it
  73. // doesn't compile. RichEdit doesn't need the remainder in any event.