X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b90840c3587c1a17f4a9ebc61350bab93dfac5b0..dfca2656cd4ff9f9cad27ddd418383949a729e65:/windlg.c diff --git a/windlg.c b/windlg.c index a8f7ef0e..f15e385d 100644 --- a/windlg.c +++ b/windlg.c @@ -1484,6 +1484,9 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg, TVITEM item; int j; char buffer[64]; + + SendMessage (hwnd, WM_SETREDRAW, FALSE, 0); + item.hItem = i; item.pszText = buffer; item.cchTextMax = sizeof(buffer); @@ -1528,6 +1531,9 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg, create_controls(hwnd, dlgtype, translationpanelstart); init_dlg_ctrls(hwnd, FALSE); + + SendMessage (hwnd, WM_SETREDRAW, TRUE, 0); + InvalidateRect (hwnd, NULL, TRUE); SetFocus(((LPNMHDR) lParam)->hwndFrom); /* ensure focus stays */ return 0;