user32: Minimize and maximize boxes can only appear when WS_SYSMENU is set.
This commit is contained in:
parent
6ae4cfe973
commit
c412d6f521
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue