summaryrefslogtreecommitdiffstats
path: root/Examples/WhisperDesktop/Utils/miscUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/WhisperDesktop/Utils/miscUtils.h')
-rw-r--r--Examples/WhisperDesktop/Utils/miscUtils.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Examples/WhisperDesktop/Utils/miscUtils.h b/Examples/WhisperDesktop/Utils/miscUtils.h
index 8cf8151..1beb7b3 100644
--- a/Examples/WhisperDesktop/Utils/miscUtils.h
+++ b/Examples/WhisperDesktop/Utils/miscUtils.h
@@ -69,4 +69,9 @@ inline uint32_t flipRgb( uint32_t val )
return val >> 8;
}
-bool isInvalidTranslate( HWND owner, uint32_t lang, bool translate ); \ No newline at end of file
+bool isInvalidTranslate( HWND owner, uint32_t lang, bool translate );
+
+inline bool isChecked( CButton& btn )
+{
+ return btn.GetCheck() == BST_CHECKED;
+} \ No newline at end of file