mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user