| 273 | } |
| 274 | |
| 275 | void PluginListView::setMessage(TCHAR *msg) |
| 276 | { |
| 277 | if (_listMode != LISTMODE_MESSAGE) |
| 278 | { |
| 279 | ListView_SetExtendedListViewStyle(_hListView, LVS_EX_FULLROWSELECT); |
| 280 | } |
| 281 | |
| 282 | _listMode = LISTMODE_MESSAGE; |
| 283 | |
| 284 | ListView_DeleteAllItems(_hListView); |
| 285 | |
| 286 | if (_message != NULL) |
| 287 | delete[] _message; |
| 288 | |
| 289 | size_t msgLength = _tcslen(msg); |
| 290 | _message = new TCHAR[msgLength + 1]; |
| 291 | _tcscpy_s(_message, msgLength + 1, msg); |
| 292 | LVITEM lvi; |
| 293 | lvi.mask = LVIF_TEXT; |
| 294 | lvi.iItem = 0; |
| 295 | lvi.iSubItem = 0; |
| 296 | lvi.pszText = _message; |
| 297 | ListView_InsertItem(_hListView, &lvi); |
| 298 | |
| 299 | } |
| 300 | |
| 301 | |
| 302 |
no outgoing calls
no test coverage detected