A window with a WS_EX_APPWINDOW extended style can also get a menu.

This commit is contained in:
Duane Clark 2003-01-07 19:46:31 +00:00 committed by Alexandre Julliard
parent fde8806673
commit 3800e91eb5
1 changed files with 2 additions and 1 deletions

View File

@ -1142,7 +1142,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
/* Set the window menu */
if ((wndPtr->dwStyle & (WS_CAPTION | WS_CHILD)) == WS_CAPTION )
if ((wndPtr->dwStyle & WS_CAPTION || wndPtr->dwExStyle & WS_EX_APPWINDOW)
&& !( wndPtr->dwStyle & WS_CHILD) )
{
if (cs->hMenu) SetMenu(hwnd, cs->hMenu);
else