CWebView Class Methods  
 
Class Description
CWebView Constructor which initializes the current instance of the class.
~CWebView Destructor which releases resources allocated by the class.
Method Description
AddStartupScript Adds a script which is executed whenever a new document is loaded.
AsyncExecute Execute JavaScript asynchronously in the current document.
Attach Attach the browser to an existing host window.
CancelDownload Cancel the specified file download.
CancelNavigation Cancel the current navigation and stop loading.
ClearCache Clear the cache of viewed pages for the current user profile.
ClearCookies Delete cookies for the current user profile or session.
ClearHeaders Clear the request and/or response headers for the current session.
ClearHistory Clear the navigation history for the current session.
Close Close the window and release all browser resources.
Create Create an instance of the browser in a new window.
Detach Detach the browser from its host window without destroying the host window.
DisableEvents Disable event handling for the specified browser.
EnableEvents Enable event handling for the specified browser.
EnableWindow Enables or disables user input for the browser window.
EnumDownloads Enumerate the file identifiers for all downloads during the current session.
Execute Execute JavaScript and return the result synchronously.
FindBrowser Locate the associated host or child window handle for an instance.
FreezeEvents Suspend or re-enable event notifications for the specified browser.
GetAllOptions Return the current option flags for the browser instance.
GetBackgroundColor Get the background color used behind the page content.
GetBrowserVersion Get the installed browser runtime version information.
GetChildWindow Get the handle of the internal browser child window.
GetContentType Return the Content-Type from the last response, if available.
GetCurrentUrl Get the URL of the current document.
GetDocumentLength Return the length of the current document.
GetDocumentText Return the content for of the current document.
GetDocumentTitle Return the document title.
GetDownloadInfo Return information about the status of the specified download.
GetDownloadPath Return the full path for the downloaded file.
GetErrorString Return a description for the specified error code.
GetFilteredText Return the current document text without HTML formatting.
GetFirstHeader Begin enumerating response headers and returns the first name/value pair.
GetFocus Return whether the browser control currently has input focus.
GetHeader Get the value of a specific response header by name.
GetHeaderCount Return the number of response headers from the last navigation.
GetHomeUrl Return the current home URL if one has been specified.
GetHttpStatus Return the HTTP status code from the last completed navigation.
GetLastError Return the last error code.
GetNavigationStatus Return the current navigation state.
GetNavigationTime Return the elapsed time for the last navigation.
GetNextHeader Continue header enumeration and return the next name/value pair.
GetOption Checks whether a specific option flag is enabled.
GetSafeHwnd Return the handle to the window hosting the browser control.
GetSecurityInfo Return certificate and host security details for the last navigation.
GetSecurityLevel Return the evaluated security level for the last navigation.
GetTimeout Get the number of seconds to wait for a navigation to complete.
GetUserAgent Return the current User-Agent value for this instance.
GetUserDataFolder Return the full path to the current user data folder.
GetWebMessage Return the most recent message sent from the current document.
GetWebMessageSource Return the source URI for the most recent message.
GetWebResult Return the result from the most recent completed script execution.
GetZoomLevel Return the current zoom level as a percentage.
GoBack Navigate backwards through the browser history.
GoForward Navigate forwards through the browser history.
GoHome Navigate to the home URL if one has been specified.
Hide Hide the browser window.
InEvent Determine if the current thread is executing code within an event handler.
IsAttached Determine if the class instance is attached to a browser window.
IsEnabled Determine if the browser window is currently enabled.
IsInitialized Determine if the class instance has been initialized.
IsSecure Determine if the current page was retrieved over a secure connection.
IsVisible Determine if the browser window is currently visible.
KeyEventHandled Set an accelerator key event as handled to suppress default processing.
MapVirtualHost Map a virtual host name to a folder path.
Navigate Navigate to the specified URL or local file path.
NormalizeUrl Normalize a URL or path for safe, consistent navigation.
PostWebMessage Post a string or JSON message to the current page.
PrintDocument Display the browser print dialog for the current document.
Redraw Force the host window and browser control to redraw themselves.
Reload Reload the current document and optionally clear the cache.
RemoveStartupScript  
Reset Reset the embedded runtime control.
Resize Resize the browser inside the host window.
RuntimeAvailable Determine whether the required runtime is installed and available.
SaveDocument Save the current document to a local file.
SaveDocumentToMemory Save the current document to memory as a PDF.
SetBackgroundColor Set the background color used behind the page content.
SetBounds Set the position and size of the browser child window.
SetDocumentText Replace the current document with the specified HTML or plain text.
SetDownloadPath Change the local file path for the specified download.
SetFocus Give keyboard focus to the browser control.
SetHeader Set or override a request header for subsequent navigations.
SetHomeUrl Set a default home URL for the specified browser instance.
SetIcon Set custom large and small icons for the host window.
SetLastError Set the last error code.
SetOption Enable or disable a specific option.
SetTimeout Set the number of seconds to wait for a navigation to complete.
SetUserAgent Set the default User-Agent string for this instance.
SetZoomLevel Set the zoom level for the current view.
Show Show the browser window.
UnmapVirtualHost Remove the mapping of a virtual host name to a folder.
WaitForEvent Wait until a specific event occurs or the timeout period expires.
WaitUntilClosed Wait until the host window is closed or destroyed.
WebViewEventProc An application-defined callback function that processes events generated by the browser.