ListView controls can have a different image list for different modes.
Sean Hall committed
Nov 10, 2021 at 15:11 UTC
dcdbe080bcbe191bf9543db58a44e57866d20576
1 file changed
+3
-3
src/libs/dutil/WixToolset.DUtil/thmutil.cpp
+3
-3
@@ -6363,15 +6363,15 @@ static HRESULT LoadControls(
6363
{
6364
::SendMessageW(pControl->hWnd, LVM_SETIMAGELIST, static_cast<WPARAM>(LVSIL_NORMAL), reinterpret_cast<LPARAM>(pControl->ListView.rghImageList[0]));
6365
}
6366
- else if (pControl->ListView.rghImageList[1])
6366
+ if (pControl->ListView.rghImageList[1])
6367
{
6368
::SendMessageW(pControl->hWnd, LVM_SETIMAGELIST, static_cast<WPARAM>(LVSIL_SMALL), reinterpret_cast<LPARAM>(pControl->ListView.rghImageList[1]));
6369
}
6370
- else if (pControl->ListView.rghImageList[2])
6370
+ if (pControl->ListView.rghImageList[2])
6371
{
6372
::SendMessageW(pControl->hWnd, LVM_SETIMAGELIST, static_cast<WPARAM>(LVSIL_STATE), reinterpret_cast<LPARAM>(pControl->ListView.rghImageList[2]));
6373
}
6374
- else if (pControl->ListView.rghImageList[3])
6374
+ if (pControl->ListView.rghImageList[3])
6375
{
6376
::SendMessageW(pControl->hWnd, LVM_SETIMAGELIST, static_cast<WPARAM>(LVSIL_GROUPHEADER), reinterpret_cast<LPARAM>(pControl->ListView.rghImageList[3]));
6377
}