Author: hbelusca
Date: Fri Feb 12 23:10:59 2016
New Revision: 70720

URL: http://svn.reactos.org/svn/reactos?rev=70720&view=rev
Log:
[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.

Modified:
    trunk/reactos/win32ss/user/ntuser/nonclient.c

Modified: trunk/reactos/win32ss/user/ntuser/nonclient.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/nonclient.c?rev=70720&r1=70719&r2=70720&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/nonclient.c       [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/nonclient.c       [iso-8859-1] Fri Feb 12 
23:10:59 2016
@@ -689,7 +689,7 @@
  * 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 @@
           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);


Reply via email to