| 953 | } |
| 954 | |
| 955 | void CMainFrame::Load(const std::wstring& filename) |
| 956 | { |
| 957 | std::ifstream file(filename); |
| 958 | if (!file) |
| 959 | Win32::ThrowLastError(filename); |
| 960 | |
| 961 | WIN32_FILE_ATTRIBUTE_DATA fileInfo = { 0 }; |
| 962 | GetFileAttributesEx(filename.c_str(), GetFileExInfoStandard, &fileInfo); |
| 963 | SetTitle(filename); |
| 964 | Load(file, std::experimental::filesystem::path(filename).filename().string(), fileInfo.ftCreationTime); |
| 965 | } |
| 966 | |
| 967 | void CMainFrame::LoadAsync(const std::wstring& filename) |
| 968 | { |
no test coverage detected