Share via


CoreWebView2NonClientRegionKind Enum

Definition

This enum contains values representing possible regions a given point lies within. The values of this enum align with the matching WM_NCHITTEST* window message return values.

public enum CoreWebView2NonClientRegionKind
type CoreWebView2NonClientRegionKind = 
Public Enum CoreWebView2NonClientRegionKind
Inheritance
CoreWebView2NonClientRegionKind

Fields

Name Value Description
Nowhere 0

A hit test region out of bounds of the WebView2. This has the same value as the Win32 HTNOWHERE

Client 1

A hit test region in the WebView2 which does not have the CSS style -webkit-app-region: drag set. This is normal web content that should not be considered part of the app window's title bar. This has the same value as the Win32 HTCLIENT constant.

Caption 2

A hit test region in the WebView2 which has the CSS style -webkit-app-region: drag set. Web content should use this CSS style to identify regions that should be treated like the app window's title bar. This has the same value as the Win32 HTCAPTION constant.

Minimize 8

A hit test region in the Webview2 which corresponds to the minimize window control button.

Maximize 9

A hit test region in the Webview2 which corresponds to the maximize window control button.

Close 20

A hit test region in the Webview2 which corresponds to the close window control button.

Applies to