CWebView::IsVisible Method  
 
BOOL IsVisible();

The IsVisible method determines if the browser window is currently visible.

Parameters

None.

Return Value

If the browser window is visible, the return value is non-zero. If the window is not visible or has been closed, the return value is zero.

Remarks

The IsVisible method checks whether the browser window is currently visible. A return value of TRUE means that the browser window is being displayed. A return value of FALSE indicates that the window has been hidden using the Hide method or the window was closed.

The IsVisible method returns the current value of the browser controller's IsVisible property. This indicates whether the browser has been configured to be visible, rather than determining the visibility of its underlying child window. For example, if the host window or one of its parent windows is hidden, the browser may not be visible on the screen even though this function returns a non-zero value. Applications should not rely on this function to determine whether the browser is actually visible to the user.

The visibility of the browser control is independent of its enabled state. A browser can be visible but disabled, preventing the user from interacting with it using the keyboard or mouse. Similarly, a browser can be enabled but hidden from view. The IsVisible method determines whether the browser controller is configured to be visible, while IsEnabled determines whether the underlying browser window is enabled. Applications can use the Show method to change the visibility of the browser and EnableWindow to enable or disable user interaction.

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