diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-05 23:38:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-05 23:38:07 +0300 |
commit | e5877abcc0a8321c79a53c24e3e7c8c0490c7d04 (patch) | |
tree | 3944915516ad02c3a4dcf51582d77bc15d651d2e /include | |
parent | 5e448daea46d976774cff4f2dd7cf2af791ee201 (diff) |
CCtrlColor class - the wrapper for Windows Color Picker
Diffstat (limited to 'include')
-rw-r--r-- | include/m_gui.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index 92a9033169..3c0d788564 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -763,6 +763,24 @@ public: };
/////////////////////////////////////////////////////////////////////////////////////////
+// CCtrlColor - color picker
+
+class MIR_CORE_EXPORT CCtrlColor : public CCtrlData
+{
+ typedef CCtrlData CSuper;
+
+public:
+ CCtrlColor(CDlgBase *dlg, int ctrlId);
+ BOOL OnCommand(HWND /*hwndCtrl*/, WORD /*idCtrl*/, WORD /*idCode*/) override;
+
+ bool OnApply() override;
+ void OnReset() override;
+
+ DWORD GetColor();
+ void SetColor(DWORD dwValue);
+};
+
+/////////////////////////////////////////////////////////////////////////////////////////
// CCtrlDate - date & time picker
class MIR_CORE_EXPORT CCtrlDate : public CCtrlData
|