| 138 | } |
| 139 | |
| 140 | LRESULT CALLBACK TaskViewVisibilityMonitor::WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) noexcept |
| 141 | { |
| 142 | if (uMsg == s_IsTaskViewOpenedMessage) |
| 143 | { |
| 144 | MULTITASKING_VIEW_TYPES flags = MVT_NONE; |
| 145 | const HRESULT hr = s_ViewService->IsViewVisible(MVT_ALL_UP_VIEW, &flags); |
| 146 | if (SUCCEEDED(hr)) |
| 147 | { |
| 148 | return flags & MVT_ALL_UP_VIEW; |
| 149 | } |
| 150 | else |
| 151 | { |
| 152 | return false; |
| 153 | } |
| 154 | } |
| 155 | else |
| 156 | { |
| 157 | return DefWindowProc(hwnd, uMsg, wParam, lParam); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | void TaskViewVisibilityMonitor::EndWatcherThread() noexcept |
| 162 | { |
nothing calls this directly
no outgoing calls
no test coverage detected