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

Method ResizeWindow

TranslucentTB/uwp/basexamlpagehost.cpp:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void BaseXamlPageHost::ResizeWindow(int x, int y, int width, int height, bool move, UINT flags)
176{
177 flags |= SWP_NOACTIVATE | SWP_NOZORDER;
178 if (!SetWindowPos(m_interopWnd, nullptr, 0, 0, width, height, flags)) [[unlikely]]
179 {
180 LastErrorHandle(spdlog::level::info, L"Failed to set interop window position");
181 }
182
183 if (!SetWindowPos(m_WindowHandle, nullptr, x, y, width, height, flags | (move ? 0 : SWP_NOMOVE))) [[unlikely]]
184 {
185 LastErrorHandle(spdlog::level::info, L"Failed to set host window position");
186 }
187}
188
189void BaseXamlPageHost::PositionDragRegion(wf::Rect position, wf::Rect buttonsRegion, UINT flags)
190{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected