UIRing.h 614 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __UIROTATE_H__
  2. #define __UIROTATE_H__
  3. #pragma once
  4. namespace DuiLib
  5. {
  6. class CRingUI : public CLabelUI
  7. {
  8. enum
  9. {
  10. RING_TIMERID = 100,
  11. };
  12. DECLARE_DUICONTROL(CRingUI)
  13. public:
  14. CRingUI();
  15. ~CRingUI();
  16. LPCTSTR GetClass() const;
  17. LPVOID GetInterface(LPCTSTR pstrName);
  18. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  19. void SetBkImage(LPCTSTR pStrImage);
  20. virtual void DoEvent(TEventUI& event);
  21. virtual void PaintBkImage(HDC hDC);
  22. private:
  23. void InitImage();
  24. void DeleteImage();
  25. public:
  26. float m_fCurAngle;
  27. Gdiplus::Image* m_pBkimage;
  28. };
  29. }
  30. #endif // __UIROTATE_H__