123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef __UITEXT_H__
- #define __UITEXT_H__
- #pragma once
- namespace DuiLib
- {
- class UILIB_API CTextUI : public CLabelUI
- {
- DECLARE_DUICONTROL(CTextUI)
- public:
- CTextUI();
- ~CTextUI();
- LPCTSTR GetClass() const;
- UINT GetControlFlags() const;
- LPVOID GetInterface(LPCTSTR pstrName);
- CDuiString* GetLinkContent(int iIndex);
- void DoEvent(TEventUI& event);
- SIZE EstimateSize(SIZE szAvailable);
- void PaintText(HDC hDC);
- protected:
- enum { MAX_LINK = 8 };
- int m_nLinks;
- RECT m_rcLinks[MAX_LINK];
- CDuiString m_sLinks[MAX_LINK];
- int m_nHoverLink;
- };
- } // namespace DuiLib
- #endif //__UITEXT_H__
|