MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / MyCTopLevelWindow_ValidateVisual

Method MyCTopLevelWindow_ValidateVisual

OpenGlass/GlassFrameHandler.cpp:459–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459HRESULT GlassFrameHandler::MyCTopLevelWindow_ValidateVisual(uDWM::CTopLevelWindow* This)
460{
461 auto data = This->GetData();
462 if (!data)
463 {
464 return g_CTopLevelWindow_ValidateVisual_Org(This);
465 }
466
467 GlassKernel::g_window = This;
468 const auto updateReflectionBeforeLeave = wil::scope_exit([This]
469 {
470 GlassKernel::g_window = nullptr;
471 LOG_IF_FAILED(UpdateReflectionViewport(This));
472 });
473
474 return g_CTopLevelWindow_ValidateVisual_Org(This);
475}
476
477void GlassFrameHandler::MyCTopLevelWindow_Destructor(uDWM::CTopLevelWindow* This)
478{

Callers

nothing calls this directly

Calls 1

GetDataMethod · 0.80

Tested by

no test coverage detected