summaryrefslogtreecommitdiffstats
path: root/Examples/WhisperDesktop/Utils/TranslateCheckbox.h
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-16 14:52:43 +0100
committerKonstantin <const@const.me>2023-01-16 14:52:43 +0100
commit8c4603c73675958efc960fbd4bb599a2909d106a (patch)
tree714dc6fc9a1672d5fd7f89676b97e10959662abc /Examples/WhisperDesktop/Utils/TranslateCheckbox.h
parent990a8d0dbaefc996244097397259e92758b15cce (diff)
Source codes
Diffstat (limited to 'Examples/WhisperDesktop/Utils/TranslateCheckbox.h')
-rw-r--r--Examples/WhisperDesktop/Utils/TranslateCheckbox.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Examples/WhisperDesktop/Utils/TranslateCheckbox.h b/Examples/WhisperDesktop/Utils/TranslateCheckbox.h
new file mode 100644
index 0000000..2b1db12
--- /dev/null
+++ b/Examples/WhisperDesktop/Utils/TranslateCheckbox.h
@@ -0,0 +1,18 @@
+#pragma once
+#include "../AppState.h"
+
+class TranslateCheckbox
+{
+ HWND m_hWnd = nullptr;
+public:
+ operator HWND() const
+ {
+ return m_hWnd;
+ }
+
+ void initialize( HWND owner, int idc, AppState& state );
+
+ bool checked();
+
+ void saveSelection( AppState& state );
+}; \ No newline at end of file