summaryrefslogtreecommitdiffstats
path: root/Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-20 20:28:37 +0100
committerKonstantin <const@const.me>2023-01-20 20:28:37 +0100
commitcec66276d467faf5b6774ff2b781e0119b5d7f46 (patch)
tree33162583f324a26396b6ffa5568ffa1d825dece9 /Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp
parente7716954cb681c531132a342b4b486a28179f792 (diff)
Minor
Diffstat (limited to 'Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp')
-rw-r--r--Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp b/Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp
index c5e6ac0..02b7279 100644
--- a/Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp
+++ b/Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp
@@ -8,7 +8,7 @@ void TranslateCheckbox::initialize( HWND owner, int idc, AppState& state )
m_hWnd = GetDlgItem( owner, idc );
assert( nullptr != m_hWnd );
- if( state.dwordLoad( regValTranslate, 0 ) != 0 )
+ if( state.boolLoad( regValTranslate ) )
::SendMessage( m_hWnd, BM_SETCHECK, BST_CHECKED, 0L );
}
@@ -21,5 +21,5 @@ bool TranslateCheckbox::checked()
void TranslateCheckbox::saveSelection( AppState& state )
{
- state.dwordStore( regValTranslate, checked() ? TRUE : FALSE );
+ state.boolStore( regValTranslate, checked() );
} \ No newline at end of file