123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef __UIANIMATIONTABLAYOUT_H__
- #define __UIANIMATIONTABLAYOUT_H__
- namespace DuiLib
- {
- class UILIB_API CAnimationTabLayoutUI : public CTabLayoutUI, public CUIAnimation
- {
- DECLARE_DUICONTROL(CAnimationTabLayoutUI)
- public:
- CAnimationTabLayoutUI();
- LPCTSTR GetClass() const;
- LPVOID GetInterface(LPCTSTR pstrName);
- bool SelectItem( int iIndex );
- void AnimationSwitch();
- void DoEvent(TEventUI& event);
- void OnTimer( int nTimerID );
- virtual void OnAnimationStart(INT nAnimationID, BOOL bFirstLoop) {}
- virtual void OnAnimationStep(INT nTotalFrame, INT nCurFrame, INT nAnimationID);
- virtual void OnAnimationStop(INT nAnimationID);
- void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
- protected:
- bool m_bIsVerticalDirection;
- int m_nPositiveDirection;
- RECT m_rcCurPos;
- RECT m_rcItemOld;
- CControlUI* m_pCurrentControl;
- bool m_bControlVisibleFlag;
- enum
- {
- TAB_ANIMATION_ID = 1,
- TAB_ANIMATION_ELLAPSE = 10,
- TAB_ANIMATION_FRAME_COUNT = 15,
- };
- };
- }
- #endif // __UIANIMATIONTABLAYOUT_H__
|