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

Method SetItem

editor/ScriptSyncDialog.cpp:147–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147bool CMyListCtrl::SetItem(int item, int state) {
148 char buffer[256];
149 switch (state) {
150 case STATE_COMPILED:
151 strcpy(buffer, "Compiled");
152 break;
153 case STATE_OOD:
154 strcpy(buffer, "Out of Date");
155 break;
156 case STATE_ERROOD:
157 strcpy(buffer, "Error/Out of Date");
158 break;
159 case STATE_OOS:
160 strcpy(buffer, "Out of Sync");
161 break;
162 case STATE_ERROOS:
163 strcpy(buffer, "Error/Out of Sync");
164 break;
165 case STATE_MISSING:
166 strcpy(buffer, "Missing");
167 break;
168 case STATE_NOCOMPILER:
169 strcpy(buffer, "No Compiler");
170 break;
171 }
172
173 return (CListCtrl::SetItem(item, COLUMN_STATE, LVIF_TEXT, buffer, 0, 0, 0, 0) != FALSE);
174}
175
176void CMyListCtrl::SelectItem(int index) {
177 int item_count = GetItemCount();

Callers 4

AddSiteEntryMethod · 0.80
InsertItemMethod · 0.80
AddToListCtrlMethod · 0.80
DoStuffMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected