user32: Minimize and maximize boxes can only appear when WS_SYSMENU is set.

This commit is contained in:
Alex Henrie 2012-07-10 18:06:06 -06:00 committed by Alexandre Julliard
parent 6ae4cfe973
commit c412d6f521

View file

@ -576,8 +576,7 @@ LRESULT NC_HandleNCHitTest( HWND hwnd, POINT pt )
rect.top += GetSystemMetrics(SM_CYCAPTION) - 1;
if (!PtInRect( &rect, pt ))
{
BOOL min_or_max_box = (style & WS_MAXIMIZEBOX) ||
(style & WS_MINIMIZEBOX);
BOOL min_or_max_box = (style & WS_SYSMENU) && (style & (WS_MINIMIZEBOX|WS_MAXIMIZEBOX));
if (ex_style & WS_EX_LAYOUTRTL)
{
/* Check system menu */