From 1c0a0fa28e08433834753422fb86de93df4bcb85 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Thu, 14 Jul 2011 10:10:07 +0000 Subject: [PATCH] [uxtheme] - Add yet another reactos specific hack - Fixes drawing scrollbar items svn path=/branches/GSoC_2011/ThemesSupport/; revision=52677 --- dll/win32/uxtheme/nonclient.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dll/win32/uxtheme/nonclient.c b/dll/win32/uxtheme/nonclient.c index 743e162dafe..320a68860ef 100644 --- a/dll/win32/uxtheme/nonclient.c +++ b/dll/win32/uxtheme/nonclient.c @@ -528,7 +528,11 @@ ThemeDrawMenuItem(PDRAW_CONTEXT pcontext, HMENU Menu, int imenu) 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));