| 173 | } |
| 174 | |
| 175 | void 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 | |
| 189 | void BaseXamlPageHost::PositionDragRegion(wf::Rect position, wf::Rect buttonsRegion, UINT flags) |
| 190 | { |
nothing calls this directly
no outgoing calls
no test coverage detected