MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Browser / UpdateMinWindowSize

Method UpdateMinWindowSize

BrowserWindow.cpp:865–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865void BrowserWindow::UpdateMinWindowSize()
866{
867 RECT clientRect;
868 RECT windowRect;
869
870 GetClientRect(m_hWnd, &clientRect);
871 GetWindowRect(m_hWnd, &windowRect);
872
873 int bordersWidth = (windowRect.right - windowRect.left) - clientRect.right;
874 int bordersHeight = (windowRect.bottom - windowRect.top) - clientRect.bottom;
875
876 m_minWindowWidth = GetDPIAwareBound(MIN_WINDOW_WIDTH) + bordersWidth;
877 m_minWindowHeight = GetDPIAwareBound(MIN_WINDOW_HEIGHT) + bordersHeight;
878}
879
880void BrowserWindow::CheckFailure(HRESULT hr, LPCWSTR errorMessage)
881{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected