| 259 | } |
| 260 | |
| 261 | bool BaseContextMenu::PreTranslateMessage(const MSG &msg) |
| 262 | { |
| 263 | if (const auto nativeSource = m_Source.try_as<IDesktopWindowXamlSourceNative2>()) |
| 264 | { |
| 265 | BOOL result; |
| 266 | const HRESULT hr = nativeSource->PreTranslateMessage(&msg, &result); |
| 267 | if (SUCCEEDED(hr)) |
| 268 | { |
| 269 | return result; |
| 270 | } |
| 271 | else |
| 272 | { |
| 273 | HresultHandle(hr, spdlog::level::warn, L"Failed to pre-translate message"); |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | return false; |
| 278 | } |
nothing calls this directly
no outgoing calls
no test coverage detected