remove positionDlg; remove .xwd from dict names

This commit is contained in:
ehouse 2004-02-27 06:09:07 +00:00
parent 1545509b81
commit 0d055bd1b8

View file

@ -112,10 +112,8 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
str = "--pick--"; str = "--pick--";
#endif #endif
} }
XP_MEMSET( widebuf, 0, sizeof(widebuf) );
MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, str, strlen(str), ceSetDlgItemFileName( hDlg, IDC_DICTBUTTON, str );
widebuf, sizeof(widebuf)/sizeof(widebuf[0]) );
SendDlgItemMessage( hDlg, IDC_DICTBUTTON, WM_SETTEXT, 0, (long)widebuf );
if ( !giState->isNewGame ) { if ( !giState->isNewGame ) {
XP_U16 disableIDs[] = { IDC_NPLAYERSCOMBO, XP_U16 disableIDs[] = { IDC_NPLAYERSCOMBO,
@ -416,8 +414,6 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
giState = (GameInfoState*)lParam; giState = (GameInfoState*)lParam;
globals = giState->globals; globals = giState->globals;
positionDlg( hDlg );
loadFromGameInfo( hDlg, globals, giState ); loadFromGameInfo( hDlg, globals, giState );
loadStateFromCurPrefs( &globals->appPrefs, &globals->gameInfo, loadStateFromCurPrefs( &globals->appPrefs, &globals->gameInfo,
&giState->prefsPrefs ); &giState->prefsPrefs );
@ -488,7 +484,7 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
if ( ce_pickDictFile( globals, giState->newDictName, if ( ce_pickDictFile( globals, giState->newDictName,
sizeof(giState->newDictName) ) ) { sizeof(giState->newDictName) ) ) {
XP_UCHAR* basename = bname(giState->newDictName); XP_UCHAR* basename = bname(giState->newDictName);
ceSetDlgItemText( hDlg, id, basename ); ceSetDlgItemFileName( hDlg, id, basename );
} }
} }
break; break;