Author: gadamopoulos
Date: Thu Jul 14 12:15:06 2011
New Revision: 52679
URL:
http://svn.reactos.org/svn/reactos?rev=52679&view=rev
Log:
[uxtheme]
- Fix the size of the caption buttons. Now they have the correct size with themes like
Luna Inspirat or clear looks
Modified:
branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1] Thu Jul 14
12:15:06 2011
@@ -229,8 +229,8 @@
RECT rcPart;
INT ButtonWidth, ButtonHeight, iPartId;
- ButtonHeight = GetThemeSysSize(pcontext->theme, pcontext->wi.dwExStyle &
WS_EX_TOOLWINDOW ? SM_CYSMSIZE : SM_CYSIZE);
- ButtonWidth = GetThemeSysSize(pcontext->theme, pcontext->wi.dwExStyle &
WS_EX_TOOLWINDOW ? SM_CXSMSIZE : SM_CXSIZE);
+ ButtonHeight = GetSystemMetrics( pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ?
SM_CYSMSIZE : SM_CYSIZE);
+ ButtonWidth = GetSystemMetrics( pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ?
SM_CXSMSIZE : SM_CXSIZE);
switch(buttonId)
{