| 145 | } |
| 146 | |
| 147 | bool 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 | |
| 176 | void CMyListCtrl::SelectItem(int index) { |
| 177 | int item_count = GetItemCount(); |
no outgoing calls
no test coverage detected