Source code of Windows XP (NT5)
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.

68 lines
2.8 KiB

  1. /*-----------------------------------------------------------------------------+
  2. | TRACK.H |
  3. | |
  4. | Contains the code which implements the track bar |
  5. | |
  6. | (C) Copyright Microsoft Corporation 1991. All rights reserved. |
  7. | |
  8. | Revision History |
  9. | Oct-1992 MikeTri Ported to WIN32 / WIN16 common code |
  10. | |
  11. +-----------------------------------------------------------------------------*/
  12. /*
  13. The trackbar messages:
  14. message wParam lParam return
  15. TBM_GETPOS ------ ------ Current logical position of trackbar.
  16. TBM_GETRANGEMIN ------ ------ Current logical minimum position allowed.
  17. TBM_GETRANGEMAX ------ ------ Current logical maximum position allowed.
  18. TBM_SETTIC
  19. TBM_SETPOS
  20. TBM_SETRANGEMIN
  21. TBM_SETRANGEMAX
  22. */
  23. #ifdef TRACKBAR_CLASS
  24. #undef TRACKBAR_CLASS
  25. #endif
  26. #define TRACKBAR_CLASS TEXT("STrackBar")
  27. BOOL FAR PASCAL TrackInit(HANDLE, HANDLE);
  28. void FAR PASCAL TrackTerm(void);
  29. LONG FAR PASCAL TrackGetLogThumbWidth(HWND hwnd);
  30. /* Track bar styles */
  31. #define TBS_TICS 0x8000L
  32. #define TBM_GETPOS (WM_USER)
  33. #define TBM_GETRANGEMIN (WM_USER+1)
  34. #define TBM_GETRANGEMAX (WM_USER+2)
  35. #define TBM_GETTIC (WM_USER+3)
  36. #define TBM_SETTIC (WM_USER+4)
  37. #define TBM_SETPOS (WM_USER+5)
  38. #define TBM_SETRANGE (WM_USER+6)
  39. #define TBM_SETRANGEMIN (WM_USER+7)
  40. #define TBM_SETRANGEMAX (WM_USER+8)
  41. #define TBM_CLEARTICS (WM_USER+9)
  42. #define TBM_SETSEL (WM_USER+10)
  43. #define TBM_SETSELSTART (WM_USER+11)
  44. #define TBM_SETSELEND (WM_USER+12)
  45. #define TBM_SETTICTOK (WM_USER+13)
  46. #define TBM_GETPTICS (WM_USER+14)
  47. #define TBM_GETTICPOS (WM_USER+15)
  48. #define TBM_GETNUMTICS (WM_USER+16)
  49. #define TBM_GETSELSTART (WM_USER+17)
  50. #define TBM_GETSELEND (WM_USER+18)
  51. #define TBM_CLEARSEL (WM_USER+19)
  52. #define TBM_SHOWTICS (WM_USER+30)
  53. #define TB_LINEUP 0
  54. #define TB_LINEDOWN 1
  55. #define TB_PAGEUP 2
  56. #define TB_PAGEDOWN 3
  57. #define TB_THUMBPOSITION 4
  58. #define TB_THUMBTRACK 5
  59. #define TB_TOP 6
  60. #define TB_BOTTOM 7
  61. #define TB_ENDTRACK 8
  62. #define TB_STARTTRACK 9
  63.