diff options
Diffstat (limited to 'Examples/WhisperDesktop/Utils/TranslateCheckbox.cpp')
| -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 |
