mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[Win32SS]
- Fix hilite text with objects. Mirror changes. svn path=/trunk/; revision=68936
This commit is contained in:
parent
c10459d14a
commit
42a15c9829
2 changed files with 24 additions and 13 deletions
|
@ -988,13 +988,20 @@ BOOL FASTCALL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
|||
hFont = GreCreateFontIndirectW(&lf);
|
||||
/* save font */
|
||||
hOldFont = NtGdiSelectFont(dc, hFont);
|
||||
if(uFlags & DFCS_INACTIVE)
|
||||
|
||||
if ((uFlags & 0xff) == DFCS_MENUARROWUP ||
|
||||
(uFlags & 0xff) == DFCS_MENUARROWDOWN )
|
||||
{
|
||||
/* draw shadow */
|
||||
IntGdiSetTextColor(dc, IntGetSysColor(COLOR_BTNHIGHLIGHT));
|
||||
GreTextOutW(dc, r->left + 1, r->top + 1, &Symbol, 1);
|
||||
#if 0
|
||||
if (uFlags & DFCS_INACTIVE)
|
||||
{
|
||||
/* draw shadow */
|
||||
IntGdiSetTextColor(dc, IntGetSysColor(COLOR_BTNHIGHLIGHT));
|
||||
GreTextOutW(dc, r->left + 1, r->top + 1, &Symbol, 1);
|
||||
}
|
||||
#endif
|
||||
IntGdiSetTextColor(dc, IntGetSysColor((uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT));
|
||||
}
|
||||
IntGdiSetTextColor(dc, IntGetSysColor((uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT));
|
||||
/* draw selected symbol */
|
||||
GreTextOutW(dc, r->left, r->top, &Symbol, 1);
|
||||
/* restore previous settings */
|
||||
|
|
|
@ -1019,16 +1019,20 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
|
|||
hFont = CreateFontIndirect(&lf);
|
||||
/* save font */
|
||||
hOldFont = SelectObject(dc, hFont);
|
||||
// FIXME selecting color doesn't work
|
||||
#if 0
|
||||
if(uFlags & DFCS_INACTIVE)
|
||||
|
||||
if ((uFlags & 0xff) == DFCS_MENUARROWUP ||
|
||||
(uFlags & 0xff) == DFCS_MENUARROWDOWN )
|
||||
{
|
||||
/* draw shadow */
|
||||
SetTextColor(dc, GetSysColor(COLOR_BTNHIGHLIGHT));
|
||||
TextOut(dc, r->left + 1, r->top + 1, &Symbol, 1);
|
||||
}
|
||||
SetTextColor(dc, GetSysColor((uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT));
|
||||
#if 0
|
||||
if (uFlags & DFCS_INACTIVE)
|
||||
{
|
||||
/* draw shadow */
|
||||
SetTextColor(dc, GetSysColor(COLOR_BTNHIGHLIGHT));
|
||||
TextOut(dc, r->left + 1, r->top + 1, &Symbol, 1);
|
||||
}
|
||||
#endif
|
||||
SetTextColor(dc, GetSysColor((uFlags & DFCS_INACTIVE) ? COLOR_BTNSHADOW : COLOR_BTNTEXT));
|
||||
}
|
||||
/* draw selected symbol */
|
||||
TextOut(dc, r->left, r->top, &Symbol, 1);
|
||||
/* restore previous settings */
|
||||
|
|
Loading…
Reference in a new issue