UIVerticalLayout.h 862 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __UIVERTICALLAYOUT_H__
  2. #define __UIVERTICALLAYOUT_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CVerticalLayoutUI : public CContainerUI
  7. {
  8. DECLARE_DUICONTROL(CVerticalLayoutUI)
  9. public:
  10. CVerticalLayoutUI();
  11. LPCTSTR GetClass() const;
  12. LPVOID GetInterface(LPCTSTR pstrName);
  13. UINT GetControlFlags() const;
  14. void SetSepHeight(int iHeight);
  15. int GetSepHeight() 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_iSepHeight;
  25. UINT m_uButtonState;
  26. POINT ptLastMouse;
  27. RECT m_rcNewPos;
  28. bool m_bImmMode;
  29. };
  30. }
  31. #endif // __UIVERTICALLAYOUT_H__