共用方式為


interface ICoreWebView2WindowFeatures

interface ICoreWebView2WindowFeatures
  : public IUnknown

Window features for a WebView popup window.

Summary

Members Descriptions
get_Height The height of the window.
get_Left The left position of the window. Will fail if HasPosition is false.
get_MenuBar Whether or not to display the menu bar.
get_ScrollBars Whether or not to display scroll bars.
get_Status Whether or not to add a status bar.
get_Toolbar Whether or not to display the browser toolbar.
get_Top The top position of the window. Will fail if HasPosition is false.
get_Width The width of the window.
HasPosition Has specified left and top values.
HasSize Has specified height and width values.

These fields match the 'windowFeatures' passed to window.open as specified in https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Window_features

Members

get_Height

The height of the window.

public HRESULT get_Height(UINT32 * height)

Minimum value is 100. Will fail if HasSize is false.

get_Left

The left position of the window. Will fail if HasPosition is false.

public HRESULT get_Left(UINT32 * left)

get_MenuBar

Whether or not to display the menu bar.

public HRESULT get_MenuBar(BOOL * menuBar)

get_ScrollBars

Whether or not to display scroll bars.

public HRESULT get_ScrollBars(BOOL * scrollBars)

get_Status

Whether or not to add a status bar.

public HRESULT get_Status(BOOL * status)

get_Toolbar

Whether or not to display the browser toolbar.

public HRESULT get_Toolbar(BOOL * toolbar)

get_Top

The top position of the window. Will fail if HasPosition is false.

public HRESULT get_Top(UINT32 * top)

get_Width

The width of the window.

public HRESULT get_Width(UINT32 * width)

Minimum value is 100. Will fail if HasSize is false.

HasPosition

Has specified left and top values.

public HRESULT HasPosition(BOOL * hasPosition)

HasSize

Has specified height and width values.

public HRESULT HasSize(BOOL * hasSize)