MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SelectItem

Method SelectItem

editor/ScriptSyncDialog.cpp:176–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void CMyListCtrl::SelectItem(int index) {
177 int item_count = GetItemCount();
178 if (index < 0 || index >= item_count)
179 return;
180
181 LVITEM lv;
182 lv.mask = LVIF_STATE;
183
184 lv.iSubItem = 0;
185 lv.stateMask = LVIS_SELECTED;
186 lv.state = 0;
187
188 for (int i = 0; i < item_count; i++) {
189 lv.iItem = i;
190 CListCtrl::SetItem(&lv);
191 }
192
193 lv.iItem = index;
194 lv.state = 0xFFFFFFFF;
195 CListCtrl::SetItem(&lv);
196}
197
198class tManageFindIn {
199public:

Callers 1

DoStuffMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected