LockWindow Off should always enable painting

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6789 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2016-10-11 19:47:21 +00:00
parent 0bb94c1591
commit 08ebc678e5
3 changed files with 6 additions and 9 deletions

View file

@ -1702,10 +1702,10 @@ static int NSISCALL ExecuteEntry(entry *entry_)
#ifdef NSIS_LOCKWINDOW_SUPPORT
case EW_LOCKWINDOW:
{
// ui_dlg_visible is 1 or 0, so is parm0
SendMessage(g_hwnd, WM_SETREDRAW, parm0 & ui_dlg_visible, 0);
if ( parm0 )
InvalidateRect(g_hwnd, NULL, FALSE);
// Not using ui_dlg_visible because it is not always in sync and we don't want to risk not painting.
// See http://forums.winamp.com/showthread.php?t=397781 for details.
SendMessage(g_hwnd, WM_SETREDRAW, parm0, 0);
if (parm0) InvalidateRect(g_hwnd, NULL, FALSE);
break;
}
#endif //NSIS_LOCKWINDOW_SUPPORT