user32: Allow clicking the restore and maximize boxes for on minimized windows.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3765b3307e
commit
c45f60450a
|
@ -473,7 +473,6 @@ LRESULT NC_HandleNCHitTest( HWND hwnd, POINT pt )
|
|||
|
||||
style = GetWindowLongW( hwnd, GWL_STYLE );
|
||||
ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
|
||||
if (style & WS_MINIMIZE) return HTCAPTION;
|
||||
|
||||
if (PtInRect( &rcClient, pt )) return HTCLIENT;
|
||||
|
||||
|
|
|
@ -305,11 +305,6 @@ HWND WINPOS_WindowFromPoint( HWND hwndScope, POINT pt, INT *hittest )
|
|||
LONG style = GetWindowLongW( list[i], GWL_STYLE );
|
||||
|
||||
/* If window is minimized or disabled, return at once */
|
||||
if (style & WS_MINIMIZE)
|
||||
{
|
||||
*hittest = HTCAPTION;
|
||||
break;
|
||||
}
|
||||
if (style & WS_DISABLED)
|
||||
{
|
||||
*hittest = HTERROR;
|
||||
|
|
Loading…
Reference in New Issue