mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +00:00
[WIN32SS][USER32] CloseWindow does minimize, doesn't close (#984)
In Windows, user32!CloseWindow minimizes the window. It doesn't close the window actually. This is not a joke. This bad function naming is responsible to MS.
This commit is contained in:
parent
d5cced1d42
commit
d0e5f4ac11
1 changed files with 2 additions and 2 deletions
|
@ -127,9 +127,9 @@ ChildWindowFromPointEx(HWND hwndParent,
|
|||
BOOL WINAPI
|
||||
CloseWindow(HWND hWnd)
|
||||
{
|
||||
SendMessageA(hWnd, WM_SYSCOMMAND, SC_CLOSE, 0);
|
||||
PostMessageW(hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
|
||||
|
||||
return HandleToUlong(hWnd);
|
||||
return ValidateHwnd(hWndParent) != NULL;
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
|
|
Loading…
Reference in a new issue