Disallow STARTF_USESHOWWINDOW+SW_MAXIMIZE

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7289 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-08-04 17:10:36 +00:00
parent c28ef6a08b
commit a2641b17d8
9 changed files with 39 additions and 4 deletions

View file

@ -343,6 +343,10 @@ INT_PTR CALLBACK DialogProc(HWND hDlg, UINT Msg, WPARAM wp, LPARAM lp)
HWND hCtl, hCtl2;
switch(Msg)
{
case WM_SIZE:
if (wp == SIZE_MAXIMIZED) ShowWindow(hDlg, SW_SHOWNOACTIVATE); // Disallow STARTF_USESHOWWINDOW+SW_MAXIMIZE
break;
case WM_COMMAND:
switch(wp)
{