Author: gadamopoulos Date: Thu Jul 14 10:10:07 2011 New Revision: 52677
URL: http://svn.reactos.org/svn/reactos?rev=52677&view=rev Log: [uxtheme] - Add yet another reactos specific hack - Fixes drawing scrollbar items
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/win3... ============================================================================== --- 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 10:10:07 2011 @@ -528,7 +528,11 @@
GetMenuItemRect(pcontext->hWnd, Menu, imenu, &Rect);
+#ifdef __REACTOS__ + OffsetRect(&Rect, -pcontext->wi.rcClient.left, -pcontext->wi.rcClient.top); +#else OffsetRect(&Rect, -pcontext->wi.rcWindow.left, -pcontext->wi.rcWindow.top); +#endif
SetBkColor(pcontext->hDC, GetSysColor(flat_menu ? COLOR_MENUBAR : COLOR_MENU)); SetTextColor(pcontext->hDC, GetSysColor(Item.fState & MF_GRAYED ? COLOR_GRAYTEXT : COLOR_MENUTEXT));