| 428 | |
| 429 | |
| 430 | void 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 | |
| 457 | void CCryptPropertySheet::OnDestroy() |
nothing calls this directly
no test coverage detected