is switching panels. Speeds things up hugely on slow systems.
[originally from svn r1236]
TVITEM item;
int j;
char buffer[64];
TVITEM item;
int j;
char buffer[64];
+
+ SendMessage (hwnd, WM_SETREDRAW, FALSE, 0);
+
item.hItem = i;
item.pszText = buffer;
item.cchTextMax = sizeof(buffer);
item.hItem = i;
item.pszText = buffer;
item.cchTextMax = sizeof(buffer);
create_controls(hwnd, dlgtype, translationpanelstart);
init_dlg_ctrls(hwnd, FALSE);
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;
SetFocus(((LPNMHDR) lParam)->hwndFrom); /* ensure focus stays */
return 0;