UITileLayout.h 592 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __UITILELAYOUT_H__
  2. #define __UITILELAYOUT_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class UILIB_API CTileLayoutUI : public CContainerUI
  7. {
  8. DECLARE_DUICONTROL(CTileLayoutUI)
  9. public:
  10. CTileLayoutUI();
  11. LPCTSTR GetClass() const;
  12. LPVOID GetInterface(LPCTSTR pstrName);
  13. void SetPos(RECT rc, bool bNeedInvalidate = true);
  14. SIZE GetItemSize() const;
  15. void SetItemSize(SIZE szItem);
  16. int GetColumns() const;
  17. void SetColumns(int nCols);
  18. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  19. protected:
  20. SIZE m_szItem;
  21. int m_nColumns;
  22. };
  23. }
  24. #endif // __UITILELAYOUT_H__