No more flickering

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1666 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-11-11 16:06:23 +00:00
parent 11d65381d9
commit ecea4a776c
5 changed files with 9 additions and 2 deletions

View file

@ -969,6 +969,8 @@ void showCfgDlg()
ShowWindow(hConfigWindow, SW_SHOWNA);
SetFocus(hNextButton);
LockWindowUpdate(0);
g_done=0;
while (!g_done) {

View file

@ -98,6 +98,8 @@ void __declspec(dllexport) Select(HWND hwndParent, int string_size, char *variab
lpWndProcOld = (void *) SetWindowLong(hwndParent, GWL_WNDPROC, (long) ParentWndProc);
}
LockWindowUpdate(0);
while (!g_done)
{
MSG msg;

Binary file not shown.

Binary file not shown.

View file

@ -509,6 +509,8 @@ nextPage:
{
HWND hwndtmp;
LockWindowUpdate(g_hwnd);
SetDlgItemTextFromLang(hwndDlg,IDOK,this_page->next);
hwndtmp=GetDlgItem(hwndDlg,IDC_BACK);
@ -518,9 +520,10 @@ nextPage:
if (this_page->id!=NSIS_PAGE_COMPLETED) DestroyWindow(m_curwnd);
else if (g_autoclose) goto nextPage;
mystrcpy(g_tmp,g_caption);
if (this_page->id==NSIS_PAGE_CUSTOM) // custom page
{
mystrcpy(g_tmp,g_caption);
process_string_fromtab(
g_tmp+mystrlen(g_tmp),
this_page->caption // post_func contains the caption for custom functions
@ -535,7 +538,6 @@ nextPage:
#endif //NSIS_SUPPORT_CODECALLBACKS
if (this_page->id>=0) // NSIS page
{
mystrcpy(g_tmp,g_caption);
process_string_fromtab(
g_tmp+mystrlen(g_tmp),
LANG_SUBCAPTION(this_page->id-(g_is_uninstaller?NSIS_PAGE_INSTFILES:0))
@ -553,6 +555,7 @@ nextPage:
SetWindowPos(m_curwnd,0,r.left,r.top,0,0,SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOZORDER);
SendMessage(m_curwnd, WM_NOTIFY_START, 0, 0);
ShowWindow(m_curwnd,SW_SHOWNA);
LockWindowUpdate(0);
}
//XGE 5th September 2002 - Do *not* move the focus to the OK button if we are