summaryrefslogtreecommitdiff
path: root/include/m_gui.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-01 21:28:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-01 21:28:01 +0300
commit01313480057e4272d545732fc3a21150869edf54 (patch)
treefc3d401e61ea485f16410d1bb7d45bebe71c2e30 /include/m_gui.h
parent3489b2fbaf66dbc60aed544288fb7cc74fc0547e (diff)
CCtrlSlider - new GUI component
Diffstat (limited to 'include/m_gui.h')
-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