[uxtheme]

- Fix the size of the caption buttons. Now they have the correct size with themes like Luna Inspirat or clear looks

svn path=/branches/GSoC_2011/ThemesSupport/; revision=52679
This commit is contained in:
Giannis Adamopoulos 2011-07-14 12:15:06 +00:00
parent 1c0a0fa28e
commit 099b4c9363

View file

@ -229,8 +229,8 @@ ThemeDrawCaptionButton(PDRAW_CONTEXT pcontext,
RECT rcPart; RECT rcPart;
INT ButtonWidth, ButtonHeight, iPartId; INT ButtonWidth, ButtonHeight, iPartId;
ButtonHeight = GetThemeSysSize(pcontext->theme, pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ? SM_CYSMSIZE : SM_CYSIZE); ButtonHeight = GetSystemMetrics( pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ? SM_CYSMSIZE : SM_CYSIZE);
ButtonWidth = GetThemeSysSize(pcontext->theme, pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ? SM_CXSMSIZE : SM_CXSIZE); ButtonWidth = GetSystemMetrics( pcontext->wi.dwExStyle & WS_EX_TOOLWINDOW ? SM_CXSMSIZE : SM_CXSIZE);
switch(buttonId) switch(buttonId)
{ {