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.

44 lines
715 B

  1. //
  2. // WGRP.HPP
  3. // Widths Group
  4. //
  5. // Copyright Microsoft 1998-
  6. //
  7. #ifndef __WGRP_HPP
  8. #define __WGRP_HPP
  9. #define WIDTHBAR_WIDTH TOOLBAR_WIDTH
  10. #define WIDTHBAR_HEIGHT 50
  11. class WbWidthsGroup
  12. {
  13. public:
  14. WbWidthsGroup();
  15. ~WbWidthsGroup();
  16. BOOL Create(HWND hwndParent, LPCRECT lprect);
  17. void GetNaturalSize(LPSIZE lpsize);
  18. void PushDown(UINT uiIndex);
  19. int ItemFromPoint(int x, int y) const;
  20. void GetItemRect(int iItem, LPRECT lprc) const;
  21. HWND m_hwnd;
  22. friend LRESULT CALLBACK WGWndProc(HWND, UINT, WPARAM, LPARAM);
  23. protected:
  24. void OnPaint(void);
  25. void OnLButtonDown(int x, int y);
  26. UINT m_uLast;
  27. UINT m_cyItem;
  28. };
  29. #endif // __WGRP_HPP