Print progress during load / selection of game
[xboard.git] / winboard / wgamelist.c
index c5a25f5..9d15fa1 100644 (file)
@@ -91,6 +91,11 @@ static int GameListToListBox( HWND hDlg, BOOL boReset, char * pszFilter, struct
         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
@@ -123,6 +128,7 @@ static int GameListToListBox( HWND hDlg, BOOL boReset, char * pszFilter, struct
     }\r
 \r
     SendDlgItemMessage(hDlg, OPT_GameListText, LB_SETCURSEL, 0, 0);\r
+    SetWindowText(hwndMain, "WinBoard");\r
 \r
     return count;\r
 }\r