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.

47 lines
1.2 KiB

  1. // Copyright (c) 2000 Microsoft Corporation. All rights reserved.
  2. //
  3. // Declaration of CSliderValue.
  4. //
  5. #pragma once
  6. class CSliderValue
  7. {
  8. public:
  9. CSliderValue();
  10. void Init(HWND hwndSlider, HWND hwndEdit, float fMin, float fMax, bool fDiscrete);
  11. void SetRange(float fMin, float fMax);
  12. void SetValue(float fPos);
  13. float GetValue();
  14. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  15. private:
  16. bool m_fInit;
  17. HWND m_hwndSlider;
  18. HWND m_hwndEdit;
  19. float m_fMin;
  20. float m_fMax;
  21. bool m_fDiscrete;
  22. private:
  23. float GetSliderValue();
  24. void UpdateEditBox(float fPos);
  25. void UpdateSlider();
  26. };
  27. class CComboHelp
  28. {
  29. public:
  30. CComboHelp();
  31. void Init(HWND hwndCombo, int nID, char *pStrings[], DWORD cbStrings);
  32. void SetValue(DWORD dwValue);
  33. DWORD GetValue();
  34. LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  35. private:
  36. bool m_fInit;
  37. int m_nID;
  38. HWND m_hwndCombo;
  39. };