/*\r
* wgamelist.c -- Game list window for WinBoard\r
*\r
- * Copyright 1995, 2009, 2010, 2011 Free Software Foundation, Inc.\r
+ * Copyright 1995, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.\r
*\r
* Enhancements Copyright 2005 Alessandro Scotti\r
*\r
}\r
}\r
\r
+ if(byPos) InitSearch();\r
+\r
for (nItem = 0; nItem < ((ListGame *) gameList.tailPred)->number; nItem++){\r
char * st = NULL;\r
BOOL skip = FALSE;\r
int pos = -1;\r
\r
+ if(nItem % 2000 == 0) {\r
+ snprintf(buf, MSG_SIZ, _("Scanning through games (%d)"), nItem);\r
+ SetWindowText(hwndMain, buf);\r
+ }\r
+\r
if( hasFilter ) {\r
st = GameListLine(lg->number, &lg->gameInfo);\r
if( !SearchPattern( st, pszFilter) ) skip = TRUE;\r
}\r
\r
SendDlgItemMessage(hDlg, OPT_GameListText, LB_SETCURSEL, 0, 0);\r
+ SetWindowText(hwndMain, "WinBoard");\r
\r
return count;\r
}\r
SendDlgItemMessage(hDlg, OPT_GameListText, LB_SETCURSEL, nItem, 0);\r
break; /* load the game*/\r
\r
-// case OPT_GameListPrev:\r
+ case OPT_GameListPrev:\r
nItem = SendDlgItemMessage(hDlg, OPT_GameListText, LB_GETCURSEL, 0, 0);\r
nItem--;\r
if (nItem < 0) {\r
break; /* load the game*/\r
\r
/* [AS] */\r
- case OPT_GameListPrev:\r
+ case OPT_GameListFind:\r
case IDC_GameListDoFilter:\r
{\r
char filter[MAX_FILTER_LENGTH+1];\r