From 78a79d97fdd60156aeccb99c46fe2f7f98ae715d Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 7 Sep 2001 21:07:15 +0000 Subject: [PATCH] Use WM_SETREDRAW to disable incremental updates while the config box is switching panels. Speeds things up hugely on slow systems. git-svn-id: svn://svn.tartarus.org/sgt/putty@1236 cda61777-01e9-0310-a592-d414129be87e --- windlg.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.11.0