From e5877abcc0a8321c79a53c24e3e7c8c0490c7d04 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Jan 2021 23:38:07 +0300 Subject: CCtrlColor class - the wrapper for Windows Color Picker --- include/m_gui.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include') 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 @@ -762,6 +762,24 @@ public: bool IsChecked(); }; +///////////////////////////////////////////////////////////////////////////////////////// +// 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 -- cgit v1.2.3