summaryrefslogtreecommitdiffstats
path: root/Examples/WhisperDesktop/Utils/miscUtils.h
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-20 20:02:26 +0100
committerKonstantin <const@const.me>2023-01-20 20:02:26 +0100
commit9c30dd0f95a11cb24f97b7eabd8eebb7ebdd5134 (patch)
tree3922d39035523f9a2855e699d847af3dae4dbd61 /Examples/WhisperDesktop/Utils/miscUtils.h
parentb188f58777d42884747bc6419e8b01adc8d4b339 (diff)
UX improvement, populate output path
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