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.

35 lines
1.3 KiB

  1. #ifndef __SBCTL_H__
  2. #define __SBCTL_H__
  3. //---------------------------------------------------------------------------
  4. // This is the scrollbar control code. Shouldn't
  5. // need to open non-client scrollbar theme
  6. #define OpenNcThemeData(hwnd, lpszName) NULL
  7. #define THEMEATOM_SCROLLBAR g_atomThemeScrollBar
  8. #define GetThemeAtom(x) (x)
  9. #undef RECTWIDTH
  10. #undef RECTHEIGHT
  11. #define RECTWIDTH(prc) ((prc)->right - (prc)->left)
  12. #define RECTHEIGHT(prc) ((prc)->bottom - (prc)->top)
  13. //---------------------------------------------------------------------------
  14. // Window scroll bar methods
  15. void WINAPI DrawSizeBox( HWND, HDC, int x, int y);
  16. void WINAPI DrawScrollBar( HWND, HDC, BOOL fVert);
  17. void WINAPI HandleScrollCmd( HWND hwnd, WPARAM wParam, LPARAM lParam );
  18. void WINAPI DetachScrollBars( HWND hwnd );
  19. void WINAPI AttachScrollBars( HWND hwnd );
  20. LONG WINAPI ThemeSetScrollInfo( HWND, int, LPCSCROLLINFO, BOOL );
  21. BOOL WINAPI ThemeGetScrollInfo( HWND, int, LPSCROLLINFO );
  22. BOOL WINAPI ThemeEnableScrollBar( HWND, UINT, UINT );
  23. //---------------------------------------------------------------------------
  24. inline void MIRROR_POINT( IN const RECT& rcWindow, IN OUT POINT& pt )
  25. {
  26. pt.x = rcWindow.right + rcWindow.left - pt.x;
  27. }
  28. #endif //__SBCTL_H__