Set the backgound mode to opaque to paint highlighted text.

This commit is contained in:
Dan Engel 2001-04-16 19:32:05 +00:00 committed by Alexandre Julliard
parent 01b9436018
commit 7c7a3571d4
1 changed files with 4 additions and 0 deletions

View File

@ -2202,15 +2202,18 @@ static INT EDIT_PaintText(EDITSTATE *es, HDC dc, INT x, INT y, INT line, INT col
COLORREF TextColor;
INT ret;
INT li;
INT BkMode;
SIZE size;
if (!count)
return 0;
BkMode = GetBkMode(dc);
BkColor = GetBkColor(dc);
TextColor = GetTextColor(dc);
if (rev) {
SetBkColor(dc, GetSysColor(COLOR_HIGHLIGHT));
SetTextColor(dc, GetSysColor(COLOR_HIGHLIGHTTEXT));
SetBkMode( dc, OPAQUE);
}
li = EDIT_EM_LineIndex(es, line);
if (es->style & ES_MULTILINE) {
@ -2227,6 +2230,7 @@ static INT EDIT_PaintText(EDITSTATE *es, HDC dc, INT x, INT y, INT line, INT col
if (rev) {
SetBkColor(dc, BkColor);
SetTextColor(dc, TextColor);
SetBkMode( dc, BkMode);
}
return ret;
}