CtrlCore: Improved behaviour when window is maximized, closed and opened again (in Win32)

git-svn-id: svn://ultimatepp.org/upp/trunk@11225 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-07-12 07:44:55 +00:00
parent 1f1cfa574f
commit a8766bc1ce

View file

@ -46,6 +46,10 @@ LRESULT TopWindow::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
WhenClose();
}
return 0;
case WM_DESTROY:
if(overlapped.GetWidth() && overlapped.GetHeight())
SetRect(overlapped);
break;
case WM_WINDOWPOSCHANGED:
if(!isopen)
break;