UIVerticalLayout.h 822 B

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