------------------------------------------------------------------------------- Clear the file history -------------------------------------------------------------------------------
| 777 | // Clear the file history |
| 778 | //------------------------------------------------------------------------------- |
| 779 | void ClearHistory() { |
| 780 | for (unsigned int i = 0; i < AI_VIEW_NUM_RECENT_FILES; ++i) { |
| 781 | g_aPreviousFiles[i] = std::string(""); |
| 782 | } |
| 783 | |
| 784 | for (int i = AI_VIEW_NUM_RECENT_FILES-1; i >= 0;--i) { |
| 785 | ModifyMenu(g_hHistoryMenu,AI_VIEW_RECENT_FILE_ID(i), |
| 786 | MF_STRING | MF_BYCOMMAND | MF_GRAYED | MF_DISABLED,AI_VIEW_RECENT_FILE_ID(i),"<empty>"); |
| 787 | } |
| 788 | |
| 789 | SaveHistory(); |
| 790 | } |
| 791 | |
| 792 | //------------------------------------------------------------------------------- |
| 793 | // Update the file history |
no test coverage detected