UIHorizontalLayout.h 870 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __UIHORIZONTALLAYOUT_H__
  2. #define __UIHORIZONTALLAYOUT_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CHorizontalLayoutUI : public CContainerUI
  7. {
  8. DECLARE_DUICONTROL(CHorizontalLayoutUI)
  9. public:
  10. CHorizontalLayoutUI();
  11. LPCTSTR GetClass() const;
  12. LPVOID GetInterface(LPCTSTR pstrName);
  13. UINT GetControlFlags() const;
  14. void SetSepWidth(int iWidth);
  15. int GetSepWidth() const;
  16. void SetSepImmMode(bool bImmediately);
  17. bool IsSepImmMode() const;
  18. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  19. void DoEvent(TEventUI& event);
  20. void SetPos(RECT rc, bool bNeedInvalidate = true);
  21. void DoPostPaint(HDC hDC, const RECT& rcPaint);
  22. RECT GetThumbRect(bool bUseNew = false) const;
  23. protected:
  24. int m_iSepWidth;
  25. UINT m_uButtonState;
  26. POINT ptLastMouse;
  27. RECT m_rcNewPos;
  28. bool m_bImmMode;
  29. };
  30. }
  31. #endif // __UIHORIZONTALLAYOUT_H__