MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / OnInitDialog

Method OnInitDialog

Explorer++/Explorer++/UpdateCheckDialog.cpp:37–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37INT_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
59DWORD WINAPI UpdateCheckDialog::UpdateCheckThread(LPVOID pParam)
60{

Callers

nothing calls this directly

Calls 2

LoadStringFunction · 0.85
RestoreDialogPositionMethod · 0.80

Tested by

no test coverage detected