CmailLoadGame(gameFile, nItem + 1, gameFileName, TRUE);\r
}\r
else {\r
+ SetFocus(hwndMain); // [HGM] automatic focus switch\r
LoadGame(gameFile, nItem + 1, gameFileName, TRUE);\r
}\r
}\r
if (gameListDialog) {\r
SendMessage(gameListDialog, WM_INITDIALOG, 0, 0);\r
if (!gameListUp) ShowWindow(gameListDialog, SW_SHOW);\r
+ else SetFocus(gameListDialog);\r
} else {\r
lpProc = MakeProcInstance((FARPROC)GameListDialog, hInst);\r
CreateDialog(hInst, MAKEINTRESOURCE(DLG_GameList),\r
VOID ShowGameListProc()\r
{\r
if (gameListUp) {\r
- GameListPopDown();\r
+ if(gameListDialog) SetFocus(gameListDialog);\r
+// GameListPopDown();\r
} else {\r
if (gameFileName) {\r
GameListPopUp(gameFile, gameFileName);\r