mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-23 05:55:04 -05:00
Use WM_SETREDRAW to disable incremental updates while the config box
is switching panels. Speeds things up hugely on slow systems. [originally from svn r1236]
This commit is contained in:
parent
5fad95e748
commit
8e58b47df2
6
windlg.c
6
windlg.c
@ -1484,6 +1484,9 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
|
|||||||
TVITEM item;
|
TVITEM item;
|
||||||
int j;
|
int j;
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
|
|
||||||
|
SendMessage (hwnd, WM_SETREDRAW, FALSE, 0);
|
||||||
|
|
||||||
item.hItem = i;
|
item.hItem = i;
|
||||||
item.pszText = buffer;
|
item.pszText = buffer;
|
||||||
item.cchTextMax = sizeof(buffer);
|
item.cchTextMax = sizeof(buffer);
|
||||||
@ -1529,6 +1532,9 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
|
|||||||
|
|
||||||
init_dlg_ctrls(hwnd, FALSE);
|
init_dlg_ctrls(hwnd, FALSE);
|
||||||
|
|
||||||
|
SendMessage (hwnd, WM_SETREDRAW, TRUE, 0);
|
||||||
|
InvalidateRect (hwnd, NULL, TRUE);
|
||||||
|
|
||||||
SetFocus(((LPNMHDR) lParam)->hwndFrom); /* ensure focus stays */
|
SetFocus(((LPNMHDR) lParam)->hwndFrom); /* ensure focus stays */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user