SkinUI_ScrollBar.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /////////////////////////////////////////////////////////////////
  2. //
  3. // Header file : SkinUI.h
  4. //
  5. // Descrption : Skin scrollbar library Version 1.0
  6. //
  7. /////////////////////////////////////////////////////////////////
  8. #pragma once
  9. #include <windows.h>
  10. // #ifdef __cplusplus
  11. // extern "C"{
  12. // #endif
  13. //----------------------------------------------------------------
  14. // Name : SkinUI_Init()
  15. // Desc : Initialize and load the scrollbar skin
  16. //----------------------------------------------------------------
  17. BOOL WINAPI SkinUI_Init(HWND hwnd, HBITMAP hBmp);
  18. //----------------------------------------------------------------
  19. // Name : SkinUI_Uninit()
  20. // Desc : Remove the scrollbar skin
  21. //----------------------------------------------------------------
  22. BOOL WINAPI SkinUI_Uninit(HWND hwnd);
  23. //----------------------------------------------------------------
  24. // Name : SkinUI_IsValid()
  25. // Desc : Whether initialied ?
  26. //----------------------------------------------------------------
  27. BOOL WINAPI SkinUI_IsValid(HWND hwnd);
  28. //----------------------------------------------------------------
  29. // Name : SkinUI_GetScrollInfo()
  30. // Desc : Gets the information for a skin scroll bar
  31. //----------------------------------------------------------------
  32. BOOL WINAPI SkinUI_GetScrollInfo(HWND hwnd, int fnBar, LPSCROLLINFO lpsi);
  33. //----------------------------------------------------------------
  34. // Name : SkinUI_SetScrollInfo()
  35. // Desc : Sets the information for a skin scroll bar
  36. //----------------------------------------------------------------
  37. int WINAPI SkinUI_SetScrollInfo(HWND hwnd, int fnBar, LPCSCROLLINFO psi, BOOL fRedraw);
  38. //----------------------------------------------------------------
  39. // Name : SkinUI_GetScrollPos()
  40. // Desc : Gets the thumb position in a skin scroll bar
  41. //----------------------------------------------------------------
  42. int WINAPI SkinUI_GetScrollPos(HWND hwnd, int fnBar);
  43. //----------------------------------------------------------------
  44. // Name : SkinUI_SetScrollPos()
  45. // Desc : Sets the current position of the thumb in a skin scroll bar
  46. //----------------------------------------------------------------
  47. int WINAPI SkinUI_SetScrollPos(HWND hwnd, int nBar, int nPos, BOOL fRedraw);
  48. //----------------------------------------------------------------
  49. // Name : SkinUI_GetScrollRange()
  50. // Desc : Gets the scroll range for a skin scroll bar
  51. //----------------------------------------------------------------
  52. BOOL WINAPI SkinUI_GetScrollRange(HWND hwnd, int nBar, LPINT lpMinPos, LPINT lpMaxPos);
  53. //----------------------------------------------------------------
  54. // Name : SkinUI_SetScrollRange()
  55. // Desc : Sets the scroll range of a skin scroll bar
  56. //----------------------------------------------------------------
  57. BOOL WINAPI SkinUI_SetScrollRange(HWND hwnd, int nBar, int nMinPos, int nMaxPos, BOOL fRedraw);
  58. //----------------------------------------------------------------
  59. // Name : SkinUI_ShowScrollBar()
  60. // Desc : Shows or hides a skin scroll bar
  61. //----------------------------------------------------------------
  62. BOOL WINAPI SkinUI_ShowScrollBar(HWND hwnd, int wBar, BOOL fShow);
  63. //----------------------------------------------------------------
  64. // Name : SkinUI_EnableScrollBar()
  65. // Desc : Enables or disables one or both skin scroll bar direction buttons
  66. //----------------------------------------------------------------
  67. BOOL WINAPI SkinUI_EnableScrollBar(HWND hwnd, UINT wSBflags, UINT wArrows);
  68. // #ifdef __cplusplus
  69. // }
  70. // #endif