Weirdness workarounds.

This commit is contained in:
Pietro Gagliardi 2018-06-09 14:32:04 -04:00
parent ff64685655
commit 3aee505f4e
1 changed files with 8 additions and 0 deletions

View File

@ -141,6 +141,14 @@ static LRESULT onLVN_GETDISPINFO(uiTable *t, NMLVDISPINFOW *nm)
if (p->imageModelColumn != -1)
nm->item.iImage = 0;
// having an image list always leaves space for an image on the main item :|
// other places on the internet imply that you should be able to do this but that it shouldn't work
// but it works perfectly (and pixel-perfectly too) for me, so...
if (nm->item.iSubItem == 0 && p->imageModelColumn == -1) {
nm->item.mask |= LVIF_INDENT;
nm->item.iIndent = -1;
}
// we don't want to pop from an empty queue, so if nothing updated the queue (no info was filled in above), just push NULL
if (!queueUpdated)
t->dispinfoStrings->push(NULL);