From b4741c36f4c9403e22a295a4b348631c9d8d36ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 12 Feb 2016 23:10:59 +0000 Subject: [PATCH] [WIN32K]: Since r7146 (12 years ago) we correctly set a small Close button for tool windows. WARNING: Please do NOT sync this piece of code with Wine! Ours behave better when one changes the values of SM_CXSMSIZE / SM_CYSMSIZE. svn path=/trunk/; revision=70720 --- reactos/win32ss/user/ntuser/nonclient.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/win32ss/user/ntuser/nonclient.c b/reactos/win32ss/user/ntuser/nonclient.c index 0f1b5cffbe0..88383b9222e 100644 --- a/reactos/win32ss/user/ntuser/nonclient.c +++ b/reactos/win32ss/user/ntuser/nonclient.c @@ -689,7 +689,7 @@ UserHasMenu(PWND pWnd, ULONG Style) * FIXME: * - Cache bitmaps, then just bitblt instead of calling DFC() (and * wasting precious CPU cycles) every time - * - Center the buttons verticaly in the rect + * - Center the buttons vertically in the rect */ VOID UserDrawCaptionButton(PWND pWnd, LPRECT Rect, DWORD Style, DWORD ExStyle, HDC hDC, BOOL bDown, ULONG Type) @@ -751,8 +751,7 @@ UserDrawCaptionButton(PWND pWnd, LPRECT Rect, DWORD Style, DWORD ExStyle, HDC hD PMENU pSysMenu = IntGetSystemMenu(pWnd, FALSE); UINT MenuState = IntGetMenuState(UserHMGetHandle(pSysMenu), SC_CLOSE, MF_BYCOMMAND); /* in case of error MenuState==0xFFFFFFFF */ - /* FIXME: A tool window has a smaller Close button */ - + /* A tool window has a smaller Close button */ if (ExStyle & WS_EX_TOOLWINDOW) { TempRect.left = TempRect.right - UserGetSystemMetrics(SM_CXSMSIZE);