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

Method ResizeWebView

Tab.cpp:101–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101HRESULT Tab::ResizeWebView()
102{
103 RECT bounds;
104 GetClientRect(m_parentHWnd, &bounds);
105
106 BrowserWindow* browserWindow = reinterpret_cast<BrowserWindow*>(GetWindowLongPtr(m_parentHWnd, GWLP_USERDATA));
107 bounds.top += browserWindow->GetDPIAwareBound(BrowserWindow::c_uiBarHeight);
108
109 return m_contentController->put_Bounds(bounds);
110}

Callers 2

WndProcMethod · 0.80
SwitchToTabMethod · 0.80

Calls 1

GetDPIAwareBoundMethod · 0.80

Tested by

no test coverage detected