summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/m_gui.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index 972821ab32..a3e211b7b4 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -839,6 +839,28 @@ public:
};
/////////////////////////////////////////////////////////////////////////////////////////
+// CCtrlSlider
+
+class MIR_CORE_EXPORT CCtrlSlider : public CCtrlData
+{
+ typedef CCtrlData CSuper;
+
+ int m_wMin, m_wMax;
+
+protected:
+ BOOL OnCommand(HWND hwndCtrl, WORD idCtrl, WORD idCode) override;
+
+public:
+ CCtrlSlider(CDlgBase *dlg, int ctrlId, int max = 100, int min = 0);
+
+ bool OnApply() override;
+ void OnReset() override;
+
+ int GetPosition();
+ void SetPosition(int pos);
+};
+
+/////////////////////////////////////////////////////////////////////////////////////////
// CCtrlSpin
class MIR_CORE_EXPORT CCtrlSpin : public CCtrlData