* Delete all messages and close their corresponding window (if any). */
| 3369 | * Delete all messages and close their corresponding window (if any). |
| 3370 | */ |
| 3371 | void DeleteAllMessages() |
| 3372 | { |
| 3373 | InitNewsItemStructs(); |
| 3374 | InvalidateWindowData(WC_STATUS_BAR, 0, SBI_NEWS_DELETED); // invalidate the statusbar |
| 3375 | InvalidateWindowData(WC_MESSAGE_HISTORY, 0); // invalidate the message history |
| 3376 | CloseWindowById(WC_NEWS_WINDOW, 0); // close newspaper or general message window if shown |
| 3377 | } |
| 3378 | |
| 3379 | /** |
| 3380 | * Close all windows that are used for construction of vehicle etc. |
no test coverage detected