SBdetours.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #include <windows.h>
  2. #ifndef COOLSB_DETOURS_INCLUDED
  3. #define COOLSB_DETOURS_INCLUDED
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. //
  8. // SCROLLBAR datatype. There are two of these structures per window
  9. //
  10. typedef struct
  11. {
  12. UINT fScrollFlags; //flags
  13. BOOL fScrollVisible; //if this scrollbar visible?
  14. SCROLLINFO scrollInfo; //positional data (range, position, page size etc)
  15. int nArrowLength; //perpendicular size (height of a horizontal, width of a vertical)
  16. int nArrowWidth; //parallel size (width of horz, height of vert)
  17. int nBarType; //SB_HORZ / SB_VERT
  18. int nMinThumbSize;
  19. } SCROLLBAR;
  20. //
  21. // Container structure for a cool scrollbar window.
  22. //
  23. typedef struct
  24. {
  25. UINT bars; //which of the scrollbars do we handle? SB_VERT / SB_HORZ / SB_BOTH
  26. WNDPROC oldproc; //old window procedure to call for every message
  27. SCROLLBAR sbarHorz; //one scrollbar structure each for
  28. SCROLLBAR sbarVert; //the horizontal and vertical scrollbars
  29. BOOL fThumbTracking; // are we currently thumb-tracking??
  30. BOOL fLeftScrollbar; // support the WS_EX_LEFTSCROLLBAR style
  31. HWND hwndToolTip; // tooltip support!!!
  32. //size of the window borders
  33. int cxLeftEdge, cxRightEdge;
  34. int cyTopEdge, cyBottomEdge;
  35. // To prevent calling original WindowProc in response
  36. // to our own temporary style change (fixes TreeView problem)
  37. BOOL bPreventStyleChange;
  38. } SCROLLWND;
  39. #define CSBS_VISIBLE 0
  40. BOOL WINAPI CoolSB_InitializeApp(void);
  41. BOOL WINAPI CoolSB_UninitializeApp(void);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif