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

Method UpdateFrame

TranslucentTB/uwp/basexamlpagehost.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "../uwp/uwp.hpp"
8
9void BaseXamlPageHost::UpdateFrame()
10{
11 // Magic that gives us shadows
12 // we use the top side because any other side would cause a single line of white pixels to
13 // suddenly flash when resizing the color picker.
14 // can't use 0, that does nothing
15 // or -1: turns it full white.
16 const MARGINS margins = { 0, 0, 1, 0 };
17 HresultVerify(DwmExtendFrameIntoClientArea(m_WindowHandle, &margins), spdlog::level::info, L"Failed to extend frame into client area");
18}
19
20wf::Rect BaseXamlPageHost::ScaleRect(wf::Rect rect, float scale)
21{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected