mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
[uxtheme]
- Add yet another reactos specific hack - Fixes drawing scrollbar items svn path=/branches/GSoC_2011/ThemesSupport/; revision=52677
This commit is contained in:
parent
660b694dc7
commit
1c0a0fa28e
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue