[BUG_FiXED] (Author: Andreas Jonsson) Fix a behavior issue on Windows shutdown.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@949 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
0011deec48
commit
75ccf352d4
@ -1465,11 +1465,18 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
saveSession(currentSession);
|
saveSession(currentSession);
|
||||||
|
|
||||||
//Sends WM_DESTROY, Notepad++ will end
|
//Sends WM_DESTROY, Notepad++ will end
|
||||||
|
if(Message == WM_CLOSE)
|
||||||
::DestroyWindow(hwnd);
|
::DestroyWindow(hwnd);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WM_ENDSESSION:
|
||||||
|
{
|
||||||
|
::DestroyWindow(hwnd);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
{
|
{
|
||||||
killAllChildren();
|
killAllChildren();
|
||||||
|
Loading…
Reference in New Issue
Block a user