UITabLayout.h 703 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __UITABLAYOUT_H__
  2. #define __UITABLAYOUT_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CTabLayoutUI : public CContainerUI
  7. {
  8. public:
  9. CTabLayoutUI();
  10. LPCTSTR GetClass() const;
  11. LPVOID GetInterface(LPCTSTR pstrName);
  12. bool Add(CControlUI* pControl);
  13. bool AddAt(CControlUI* pControl, int iIndex);
  14. bool Remove(CControlUI* pControl);
  15. void RemoveAll();
  16. int GetCurSel() const;
  17. bool SelectItem(int iIndex, bool bTriggerEvent=true);
  18. bool SelectItem(CControlUI* pControl, bool bTriggerEvent=true);
  19. void SetPos(RECT rc, bool bNeedInvalidate = true);
  20. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  21. protected:
  22. int m_iCurSel;
  23. };
  24. }
  25. #endif // __UITABLAYOUT_H__