summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-12-16 19:25:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-12-16 19:25:38 +0300
commitf1446312f438526433911e0c4719c2dd19fda0e0 (patch)
tree8cb18a1b0d00264ef8253ddacf8893db2a3e8d04 /src
parent5ff924c744b83b488ec8e3aef487ca2ad6c6326b (diff)
minor code cleaning
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/Windows/CCtrlTreeOpts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/Windows/CCtrlTreeOpts.cpp b/src/mir_core/src/Windows/CCtrlTreeOpts.cpp
index 132b5082d7..d15f3d4b1b 100644
--- a/src/mir_core/src/Windows/CCtrlTreeOpts.cpp
+++ b/src/mir_core/src/Windows/CCtrlTreeOpts.cpp
@@ -139,12 +139,12 @@ void CCtrlTreeOpts::OnInit()
TVINSERTSTRUCT tvis = {};
tvis.hParent = hSection;
tvis.hInsertAfter = TVI_LAST;
- tvis.item.mask = TVIF_TEXT | TVIF_PARAM | TVIF_STATE;
+ tvis.item.mask = TVIF_TEXT | TVIF_PARAM | TVIF_STATE | TVIF_IMAGE;
tvis.item.pszText = (LPWSTR)it->m_pwszName;
tvis.item.lParam = m_options.indexOf(&it);
+ tvis.item.iImage = -1;
tvis.item.state = INDEXTOSTATEIMAGEMASK(bValue ? 2 : 1);
tvis.item.stateMask = TVIS_STATEIMAGEMASK;
-
it->m_hItem = InsertItem(&tvis);
}
}