diff options
| author | Konstantin <const@const.me> | 2023-01-20 20:28:37 +0100 |
|---|---|---|
| committer | Konstantin <const@const.me> | 2023-01-20 20:28:37 +0100 |
| commit | cec66276d467faf5b6774ff2b781e0119b5d7f46 (patch) | |
| tree | 33162583f324a26396b6ffa5568ffa1d825dece9 | |
| parent | e7716954cb681c531132a342b4b486a28179f792 (diff) | |
Minor
| -rw-r--r-- | Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp | 4 |
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 |
