MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / OnTimer

Method OnTimer

cppcryptfs/ui/CryptPropertySheet.cpp:430–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428
429
430void CCryptPropertySheet::OnTimer(UINT_PTR nIDEvent)
431{
432 // TODO: Add your message handler code here and/or call default
433
434 if (nIDEvent == kSysTrayiTimerId) {
435 const HWND hWnd = ::FindWindow(L"Shell_TrayWnd", NULL);
436
437 if (hWnd)
438 {
439 if (m_bDoRecreateSysTrayIcon)
440 {
441 m_bDoRecreateSysTrayIcon = false;
442 theApp.RecreateSystemTrayIcon();
443 }
444 else if (hWnd != m_hSysTrayWnd)
445 {
446 m_hSysTrayWnd = hWnd;
447 // We seem to need some sort of delay before recreating it.
448 m_bDoRecreateSysTrayIcon = true;
449 }
450 }
451 }
452
453 CPropertySheet::OnTimer(nIDEvent);
454}
455
456
457void CCryptPropertySheet::OnDestroy()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected