Commit c412d6f5 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent 6ae4cfe9
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment