force update scroll info when changing the set of visible widgets. fixes bug where smartphone didn't scroll prefs dlg after switch to global prefs.

This commit is contained in:
ehouse 2009-11-26 02:20:34 +00:00
parent cc24c63dd9
commit a0fa8f94da

View file

@ -1,4 +1,4 @@
/* -*- mode: C; fill-column: 77; c-basic-offset: 4; -*- */
/* -*- fill-column: 77; c-basic-offset: 4; compile-command: "make TARGET_OS=wince DEBUG=TRUE" -*- */
/*
* Copyright 2002-2009 by Eric House (xwords@eehouse.org). All rights reserved.
*
@ -126,6 +126,12 @@ adjustForChoice( CePrefsDlgState* state )
#endif
ceDlgComboShowHide( &state->dlgHdr, PHONIES_COMBO );
}
#ifdef _WIN32_WCE
if ( IS_SMARTPHONE(state->dlgHdr.globals) ) {
SendMessage( hDlg, DM_RESETSCROLL, (WPARAM)FALSE, (LPARAM)TRUE );
}
#endif
} /* adjustForChoice */
/* Copy global state into a local copy that can be changed without