CWebView2.GetBoundsmethod
Gets the WebView bounds.
Syntax
FUNCTION GetBounds () AS RECT
Description
Gets the WebView bounds.
Bounds are relative to the parent HWND. The app has two ways to position a WebView.
- Create a child HWND that is the WebView parent HWND. Position the window where the WebView should be. Use (0, 0) for the top-left corner (the offset) of the Bounds of the WebView.
- Use the top-most window of the app as the WebView parent HWND. For example, to position WebView correctly in the app, set the top-left corner of the Bound of the WebView.
The values of Bounds are limited by the coordinate space of the host.
Reference
- Defined in AfxNova/CWebView2.inc:924
- Documented in WebView/CWebWiew2 Class.md
- Topic: CWebView2 Class