Fixed some of the technical glitches.

This commit is contained in:
Pietro Gagliardi 2018-06-15 19:29:01 -04:00
parent e6da33121e
commit 32ee36eb22
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ static HRESULT computeAndDrawTextRect(struct drawState *s)
r = s->subitemLabel;
if (!s->hasText && !s->hasImage)
r = s->subitemBounds;
else if (!s->hasImage && s->iSubItem != 0)
// By default, this will include images; we're not drawing
// images, so we will manually draw over the image area.
// There's a second part to this; see below.
r.left = s->subitemBounds.left;
if (FillRect(s->dc, &r, s->bgBrush) == 0) {
logLastError(L"FillRect()");