UITabLayout.h 703 B

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