[WIN32SS][NTUSER] Fix menu drawing after style change (#1821)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 10 Aug 2019 22:46:14 +0000 (07:46 +0900)
committerGitHub <noreply@github.com>
Sat, 10 Aug 2019 22:46:14 +0000 (07:46 +0900)
commitb863ecc33f4ef65a80878596438a203d50e8e90f
tree81601101645e0ff9ce9f31b599d30a6de63ee285
parent8823a0c51eeb8b3d72f1e74a2cabc055d4bdbfb9
[WIN32SS][NTUSER] Fix menu drawing after style change (#1821)

There were menu drawing regression after https://github.com/reactos/reactos/commit/03adec81414abb53e589ecd9061042b9ca2104c1.
This PR will fix it. CORE-16244

- We don't have to draw the frame manually because of WS_EX_DLGMODALFRAME extended style.
- We don't need the margins (MENU_TOP_MARGIN and MENU_BOTTOM_MARGIN) in the client area any more because the client area doesn't contain the frame width.
- Use GetSystemMetrics(SM_CXDLGFRAME) and GetSystemMetrics(SM_CYDLGFRAME) for frame width.
win32ss/user/ntuser/menu.c