UITileLayout.h 556 B

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