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:
parent
c28ef6a08b
commit
a2641b17d8
9 changed files with 39 additions and 4 deletions
|
@ -672,9 +672,14 @@ skipPage:
|
|||
}
|
||||
if (uMsg == WM_SIZE) {
|
||||
ShowWindow(m_bgwnd, wParam == SIZE_MINIMIZED ? SW_HIDE : SW_SHOW);
|
||||
#else //! NSIS_SUPPORT_BGBG
|
||||
if (uMsg == WM_SIZE) {
|
||||
#endif //~ NSIS_SUPPORT_BGBG
|
||||
if (wParam == SIZE_MAXIMIZED) {
|
||||
DWORD style = (DWORD) GetWindowLongPtr(hwndDlg, GWL_STYLE), mask = WS_MAXIMIZEBOX|WS_MAXIMIZE|WS_MINIMIZE;
|
||||
if ((style & mask) == WS_MAXIMIZE) ShowWindow(hwndDlg, SW_SHOWNOACTIVATE); // Disallow STARTF_USESHOWWINDOW+SW_MAXIMIZE unless someone does ${NSD_AddStyle} $hWndParent ${WS_MAXIMIZEBOX}
|
||||
}
|
||||
}
|
||||
#endif //NSIS_SUPPORT_BGBG
|
||||
|
||||
if (uMsg == WM_NOTIFY_CUSTOM_READY) {
|
||||
DestroyWindow(m_curwnd);
|
||||
m_curwnd = (HWND)wParam;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue