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.

49 lines
1.0 KiB

  1. /*
  2. * Thumb
  3. */
  4. #ifndef DUI_CONTORL_THUMB_H_INCLUDED
  5. #define DUI_CONTORL_THUMB_H_INCLUDED
  6. #pragma once
  7. #include "duibutton.h"
  8. namespace DirectUI
  9. {
  10. ////////////////////////////////////////////////////////
  11. // Thumb
  12. // ThumbDrag event
  13. struct ThumbDragEvent : Event
  14. {
  15. SIZE sizeDelta;
  16. };
  17. // Class definition
  18. class Thumb : public Button
  19. {
  20. public:
  21. static HRESULT Create(OUT Element** ppElement) { return Create(AE_Mouse, ppElement); }
  22. static HRESULT Create(UINT nActive, OUT Element** ppElement);
  23. // System events
  24. virtual void OnInput(InputEvent* pie);
  25. // Event types
  26. static UID Drag;
  27. // ClassInfo accessors (static and virtual instance-based)
  28. static IClassInfo* Class;
  29. virtual IClassInfo* GetClassInfo() { return Class; }
  30. static HRESULT Register();
  31. Thumb() { }
  32. HRESULT Initialize(UINT nActive) { return Button::Initialize(nActive); }
  33. virtual ~Thumb() { }
  34. };
  35. } // namespace DirectUI
  36. #endif // DUI_CONTORL_THUMB_H_INCLUDED