| 35 | } |
| 36 | |
| 37 | INT_PTR UpdateCheckDialog::OnInitDialog() |
| 38 | { |
| 39 | SetDlgItemText(m_hDlg, IDC_STATIC_CURRENT_VERSION, VERSION_STRING_W); |
| 40 | |
| 41 | TCHAR szTemp[64]; |
| 42 | LoadString(GetInstance(), IDS_UPDATE_CHECK_STATUS, szTemp, SIZEOF_ARRAY(szTemp)); |
| 43 | SetDlgItemText(m_hDlg, IDC_STATIC_UPDATE_STATUS, szTemp); |
| 44 | |
| 45 | SetTimer(m_hDlg, 0, STATUS_TIMER_ELAPSED, nullptr); |
| 46 | |
| 47 | /* The actual version check will be performed in a background |
| 48 | thread (to avoid blocking the main thread while the version |
| 49 | file is downloaded). */ |
| 50 | HANDLE hThread = |
| 51 | CreateThread(nullptr, 0, UpdateCheckThread, reinterpret_cast<LPVOID>(m_hDlg), 0, nullptr); |
| 52 | CloseHandle(hThread); |
| 53 | |
| 54 | m_pucdps->RestoreDialogPosition(m_hDlg, false); |
| 55 | |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | DWORD WINAPI UpdateCheckDialog::UpdateCheckThread(LPVOID pParam) |
| 60 | { |
nothing calls this directly
no test coverage detected