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;
|
rect.top += GetSystemMetrics(SM_CYCAPTION) - 1;
|
||||||
if (!PtInRect( &rect, pt ))
|
if (!PtInRect( &rect, pt ))
|
||||||
{
|
{
|
||||||
BOOL min_or_max_box = (style & WS_MAXIMIZEBOX) ||
|
BOOL min_or_max_box = (style & WS_SYSMENU) && (style & (WS_MINIMIZEBOX|WS_MAXIMIZEBOX));
|
||||||
(style & WS_MINIMIZEBOX);
|
|
||||||
if (ex_style & WS_EX_LAYOUTRTL)
|
if (ex_style & WS_EX_LAYOUTRTL)
|
||||||
{
|
{
|
||||||
/* Check system menu */
|
/* Check system menu */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user