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.

117 lines
4.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998 Active Voice Corporation. All Rights Reserved.
  4. //
  5. // Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
  6. //
  7. // Other brand and product names used herein are trademarks of their respective owners.
  8. //
  9. // The entire program and user interface including the structure, sequence, selection,
  10. // and arrangement of the dialog, the exclusively "yes" and "no" choices represented
  11. // by "1" and "2," and each dialog message are protected by copyrights registered in
  12. // the United States and by international treaties.
  13. //
  14. // Protected by one or more of the following United States patents: 5,070,526, 5,488,650,
  15. // 5,434,906, 5,581,604, 5,533,102, 5,568,540, 5,625,676, 5,651,054.
  16. //
  17. // Active Voice Corporation
  18. // Seattle, Washington
  19. // USA
  20. //
  21. /////////////////////////////////////////////////////////////////////////////////////////
  22. ////
  23. // bscroll.h - interface for bitmap scroll functions in bscroll.c
  24. ////
  25. #ifndef __BSCROLL_H__
  26. #define __BSCROLL_H__
  27. #include "winlocal.h"
  28. #define BSCROLL_VERSION 0x00000109
  29. // handle to bscroll screen
  30. //
  31. DECLARE_HANDLE32(HBSCROLL);
  32. // <dwFlags> values in BScrollInit
  33. //
  34. #define BSCROLL_BACKGROUND 0x00000000
  35. #define BSCROLL_FOREGROUND 0x00000001
  36. #define BSCROLL_UP 0x00000002
  37. #define BSCROLL_DOWN 0x00000004
  38. #define BSCROLL_LEFT 0x00000008
  39. #define BSCROLL_RIGHT 0x00000010
  40. #define BSCROLL_MOUSEMOVE 0x00000020
  41. #define BSCROLL_FLIGHTSIM 0x00000040
  42. #define BSCROLL_DRAG 0x00000080
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. // BScrollInit - initialize bscroll engine
  47. // <dwVersion> (i) must be BSCROLL_VERSION
  48. // <hInst> (i) instance handle of calling module
  49. // <hwndParent> (i) window which will own the bscroll window
  50. // <hbmpBackground> (i) bitmap to display in background
  51. // NULL no background bitmap
  52. // <hbmpForeground> (i) bitmap to display in foreground
  53. // NULL no foreground bitmap
  54. // <crTransparent> (i) transparent color in foreground bitmap
  55. // <hPalette> (i) palette
  56. // NULL use default palette
  57. // <msScroll> (i) scroll rate in milleseconds
  58. // 0 do not scroll
  59. // <pelScroll> (i) scroll amount in pixels
  60. // <dwReserved> (i) reserved; must be zero
  61. // <dwFlags> (i) control flags
  62. // BSCROLL_BACKGROUND scroll the background bitmap (default)
  63. // BSCROLL_FOREGROUND scroll the foreground bitmap
  64. // BSCROLL_UP scroll the window up
  65. // BSCROLL_DOWN scroll the window down
  66. // BSCROLL_LEFT scroll the window left
  67. // BSCROLL_RIGHT scroll the window right
  68. // BSCROLL_MOUSEMOVE change scroll direction on mouse movement
  69. // BSCROLL_FLIGHTSIM reverses BSCROLL_MOUSEMOVE direction
  70. // BSCROLL_DRAG allow scrolling using mouse drag
  71. // return handle (NULL if error)
  72. //
  73. // NOTE: BScrollInit creates the window but does not start the scrolling.
  74. // See BScrollStart and BScrollStop
  75. //
  76. HBSCROLL DLLEXPORT WINAPI BScrollInit(DWORD dwVersion, HINSTANCE hInst,
  77. HWND hwndParent, HBITMAP hbmpBackground, HBITMAP hbmpForeground,
  78. COLORREF crTransparent, HPALETTE hPalette, UINT msScroll,
  79. int pelScroll, DWORD dwReserved, DWORD dwFlags);
  80. // BScrollTerm - shutdown bscroll engine
  81. // <hBScroll> (i) handle returned from BScrollInit
  82. // return 0 if success
  83. //
  84. int DLLEXPORT WINAPI BScrollTerm(HBSCROLL hBScroll);
  85. // BScrollStart - start bscroll animation
  86. // <hBScroll> (i) handle returned from BScrollInit
  87. // return 0 if success
  88. //
  89. int DLLEXPORT WINAPI BScrollStart(HBSCROLL hBScroll);
  90. // BScrollStop - stop bscroll animation
  91. // <hBScroll> (i) handle returned from BScrollInit
  92. // return 0 if success
  93. //
  94. int DLLEXPORT WINAPI BScrollStop(HBSCROLL hBScroll);
  95. // BScrollGetWindowHandle - get bscroll screen window handle
  96. // <hBScroll> (i) handle returned from BScrollInit
  97. // return window handle (NULL if error)
  98. //
  99. HWND DLLEXPORT WINAPI BScrollGetWindowHandle(HBSCROLL hBScroll);
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103. #endif // __BSCROLL_H__