Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

  1. /*
  2. * Progress
  3. */
  4. #ifndef DUI_CONTROL_PROGRESS_H_INCLUDED
  5. #define DUI_CONTROL_PROGRESS_H_INCLUDED
  6. #pragma once
  7. namespace DirectUI
  8. {
  9. ////////////////////////////////////////////////////////
  10. // Progress
  11. // Class definition
  12. class Progress : public Element
  13. {
  14. public:
  15. static HRESULT Create(OUT Element** ppElement);
  16. // Rendering overrides
  17. virtual void Paint(HDC hDC, const RECT* prcBounds, const RECT* prcInvalid, RECT* prcSkipBorder, RECT* prcSkipContent);
  18. virtual SIZE GetContentSize(int dConstW, int dConstH, Surface* psrf);
  19. // Property definitions
  20. static PropertyInfo* PositionProp;
  21. static PropertyInfo* MinimumProp;
  22. static PropertyInfo* MaximumProp;
  23. // Quick property accessors
  24. int GetPosition() DUIQuickGetter(int, GetInt(), Position, Specified)
  25. int GetMaximum() DUIQuickGetter(int, GetInt(), Maximum, Specified)
  26. int GetMinimum() DUIQuickGetter(int, GetInt(), Minimum, Specified)
  27. HRESULT SetPosition(int v) DUIQuickSetter(CreateInt(v), Position)
  28. HRESULT SetMaximum(int v) DUIQuickSetter(CreateInt(v), Maximum)
  29. HRESULT SetMinimum(int v) DUIQuickSetter(CreateInt(v), Minimum)
  30. // ClassInfo accessors (static and virtual instance-based)
  31. static IClassInfo* Class;
  32. virtual IClassInfo* GetClassInfo() { return Class; }
  33. static HRESULT Register();
  34. Progress() { }
  35. HRESULT Initialize() { return Element::Initialize(0); }
  36. virtual ~Progress() { }
  37. };
  38. } // namespace DirectUI
  39. #endif // DUI_CONTROL_PROGRESS_H_INCLUDED