CWebView::Show Method  
 
BOOL Show();

The Show method shows the browser window.

Parameters

None.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The Show method changes the visibility state of the browser control. When the browser was created as a top-level window using Create, this method internally calls the standard ShowWindow API to show the entire browser window.

When the browser is embedded in an existing host window using Attach, the method does not change the visibility of the parent window. Instead, it sends an internal message to the control to show the child window which contains the WebView2 browser. This enables the host application to enable visibility of the browser control independently of other controls in the same window.

The current visibility state can be queried using the IsVisible method.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtmv12.lib

See Also