MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / PreTranslateMessage

Method PreTranslateMessage

TranslucentTB/tray/basecontextmenu.cpp:261–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261bool 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected