UITabLayout.h 703 B

12345678910111213141516171819202122232425262728293031323334
  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__