mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
remove positionDlg; remove .xwd from dict names
This commit is contained in:
parent
1545509b81
commit
0d055bd1b8
1 changed files with 3 additions and 7 deletions
|
@ -112,10 +112,8 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
|
|||
str = "--pick--";
|
||||
#endif
|
||||
}
|
||||
XP_MEMSET( widebuf, 0, sizeof(widebuf) );
|
||||
MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, str, strlen(str),
|
||||
widebuf, sizeof(widebuf)/sizeof(widebuf[0]) );
|
||||
SendDlgItemMessage( hDlg, IDC_DICTBUTTON, WM_SETTEXT, 0, (long)widebuf );
|
||||
|
||||
ceSetDlgItemFileName( hDlg, IDC_DICTBUTTON, str );
|
||||
|
||||
if ( !giState->isNewGame ) {
|
||||
XP_U16 disableIDs[] = { IDC_NPLAYERSCOMBO,
|
||||
|
@ -416,8 +414,6 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
giState = (GameInfoState*)lParam;
|
||||
globals = giState->globals;
|
||||
|
||||
positionDlg( hDlg );
|
||||
|
||||
loadFromGameInfo( hDlg, globals, giState );
|
||||
loadStateFromCurPrefs( &globals->appPrefs, &globals->gameInfo,
|
||||
&giState->prefsPrefs );
|
||||
|
@ -488,7 +484,7 @@ GameInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
if ( ce_pickDictFile( globals, giState->newDictName,
|
||||
sizeof(giState->newDictName) ) ) {
|
||||
XP_UCHAR* basename = bname(giState->newDictName);
|
||||
ceSetDlgItemText( hDlg, id, basename );
|
||||
ceSetDlgItemFileName( hDlg, id, basename );
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue