Skip to content

Methods for cWebView2Browser

View method list in alphabetical order.

Name Type Description Defining Class
AddScriptToExecuteOnDocumentCreated Function Adds a script that will be executed during the loading of the future documents cWebView2Browser
AddScriptToExecuteOnDocumentCreated Procedure cWebView2Browser
AddWebResourceRequestedFilter Procedure Sets up a resource request filter that will enable the OnWebResourceRequested for these requests cWebView2Browser
CapturePreview Procedure Captures the currently displayed document into an image cWebView2Browser
ClearVirtualHostNameToFolderMapping Procedure Clears a virtual hostname mapping created using SetVirtualHostNameToFolderMapping cWebView2Browser
ExecuteScript Function Executes a script within the current top-level document of the WebView2 control cWebView2Browser
ExecuteScript Procedure cWebView2Browser
GoBack Procedure Navigates one step back in the browser history cWebView2Browser
GoForward Procedure Navigates one step forward in the browser history cWebView2Browser
Navigate Procedure Initiates a browser navigation to the provided URL cWebView2Browser
NavigateToString Procedure Renders the provided HTML as top-level document cWebView2Browser
OpenDevToolsWindow Procedure Opens the developer tools window cWebView2Browser
PostWebMessageAsJson Procedure Posts a message to the document loaded inside the WebView2 control cWebView2Browser
PostWebMessageAsJsonHandle Procedure Posts a message to the document loaded inside the WebView2 control cWebView2Browser
PostWebMessageAsString Procedure Posts a message to the document loaded inside the WebView2 control cWebView2Browser
Reload Procedure Reloads the current document cWebView2Browser
RemoveScriptToExecuteOnDocumentCreated Procedure Removes a script that is added using AddScriptToExecuteOnDocumentCreated cWebView2Browser
RemoveWebResourceRequestedFilter Procedure Removes a resource request filter that was previously set up using AddWebResourceRequestedFilter cWebView2Browser
SetVirtualHostNameToFolderMapping Procedure Creates a virtual mapping between the provided host name and a local folder on disk cWebView2Browser
Stop Procedure Stops all navigations and pending resource fetches cWebView2Browser
WebMessageAdditionalFileObjectPaths Function Can be used to query file paths of additional file objects passed with a WebMessage cWebView2Browser
WebResourceRequestContent Function Use this function inside OnWebResourceRequested to query the HTTP request body of the current resource request cWebView2Browser
WebResourceRequestHeader Function Use this function inside OnWebResourceRequested to query a specific HTTP header value of the current resource request cWebView2Browser
WebResourceResponseSet Procedure Can be used inside OnWebResourceRequested to set additional header values for the response. cWebView2Browser
WebResourceResponseSetHeader Procedure Use inside OnWebResourceRequested to set additional HTTP headers on the response when overriding the response using WebResourceResponseSet cWebView2Browser

Inherited Methods from cComActiveXControl

Name Type Description Defining Class
Beginning_of_Panel Procedure Gives the focus to the first item in the first object in the current parent-child hierarchy cComActiveXControl
Bottom_of_Panel Procedure Activates the last child object of this object that is a DEO, if any cComActiveXControl
DoHtmlHelp Procedure Launches Compiled HTML Help cComActiveXControl
End_of_Panel Procedure Gives the focus to the last item in the last object in the current parent-child hierarchy cComActiveXControl
Error_Help Procedure cComActiveXControl
Extended_Help Procedure cComActiveXControl
File_Help Procedure cComActiveXControl
Help Procedure Requests Help. Usually invoked by pressing F1 or pressing a Button that sends this message cComActiveXControl
Help_For_Help Procedure cComActiveXControl
Help_Index Procedure cComActiveXControl
Help_on_Topic Procedure cComActiveXControl
IsComObjectCreated Function Tests to see if a COM object exists by getting the value of IsComObjectCreated cComActiveXControl
Keys_Help Procedure cComActiveXControl
Next_Object_Id Function Called by the switch message to determine the object_id of the next object to go to in the focus tree cComActiveXControl
Prior_Object_Id Function Called by the switch_back message to determine the object_id of the previous object to go to in the focus tree cComActiveXControl
Request_Status_Help Procedure Sent when an object is about to take or lose the focus cComActiveXControl
ReSize_Label Procedure Called to resize the object's label after a font change cComActiveXControl
Switch_Next_Area Procedure Moves the focus to the next "area" within a view cComActiveXControl
Switch_Prior_Area Procedure Moves the focus to the previous "area" within a view cComActiveXControl
Top_of_Panel Procedure Activates the first child object of this object that is a DEO, if any; else activates this object cComActiveXControl

Inherited Methods from DfInPlaceComObject

Name Type Description Defining Class
ComAddRef Procedure DfInPlaceComObject
ComQueryInterface Function DfInPlaceComObject
CreateComObject Procedure Sent to create and connect to an instance of the ActiveX control associated with this object DfInPlaceComObject
RegisterComEvent Procedure DfInPlaceComObject
RegisterPropertyChangeEvent Procedure DfInPlaceComObject
ReleaseComObject Procedure Releases ActiveX control associated with this object DfInPlaceComObject

Inherited Methods from DfComUIObject

Name Type Description Defining Class
Adjust_Logicals Procedure Sets the logical coordinates for size and location to the best approximations of the actual physical coordinates of the object DfComUIObject
DialogToGui Function This is used to convert dialog units to gui units. DfComUIObject
GuiClientSize Function This returns an object's client area size as a folded integer value DfComUIObject
GuiToDialog Function This is used to convert gui units to dialog units. DfComUIObject
GuiWindowSize Function This returns an object's outer window bounding size as a folded value DfComUIObject
Release_Mouse_Capture Procedure Restores normal mouse capture DfComUIObject

Inherited Methods from cUIObject

Name Type Description Defining Class
Activate Procedure Gives an object the focus (and adds it to the focus tree) cUIObject
Activate_Scope Procedure Activates objects that are separate tools to the application cUIObject
Add_Focus Procedure Adds the object into the focus tree at the Next_Level of the hoParent in the focus tree cUIObject
Bell Procedure Rings the PC bell cUIObject
Cancel Procedure Used to terminate the current level of a start_ui or ui_accept cUIObject
CanCopy Function Determines whether a Copy operation can be successfully completed cUIObject
CanCut Function Determines whether a Cut operation can be successfully completed cUIObject
CanDelete Function Determines whether a Delete operation can be successfully completed cUIObject
CanPaste Function Determines whether a Paste operation can be successfully completed cUIObject
CanSelect Function Determines whether a Select operation can be successfully completed cUIObject
CanUndo Function Determines whether n Undooperation can be successfully completed cUIObject
Confirm Function Pops up a "Yes/No" confirmation cUIObject
Data_Loss_Confirmation Function Pops up a "Yes/No" confirmation for data loss cUIObject
Deactivate Procedure Removes the object from the focus tree cUIObject
Default_Key Procedure Used in On_key command to restore standard accelerator for an object cUIObject
Delete_Confirmation Function Pops up a "Yes/No" confirmation for a delete cUIObject
Exit_Loss_Confirmation Function Pops up a "Yes/No" confirmation for exit loss cUIObject
Help Procedure Overridden in the help_system to activate context-sensitive help cUIObject
Item Procedure Set Changes the current item to the first or last data item (depending on the value of last) in the displayed range of items cUIObject
Line_Delete_Confirmation Function Pops up a "Yes/No" confirmation for a line delete cUIObject
Line_Save_Confirmation Function Pops up a "Yes/No" confirmation for a line save cUIObject
Next Procedure Moves the focus to the next object in the tab order when the Tab key is pressed cUIObject
Next_Object_Id Function Called by the switch message to determine the object_id of the next object to go to in the focus tree cUIObject
No_Confirmation Function Used to cancel a confirmation message cUIObject
None Procedure Does nothing - used by on_key and commands to stop a key assignment cUIObject
Ok Procedure Used on items and accelerator key definitions to terminate the current level of start_ui or ui_accept cUIObject
Page_Object Procedure Adds or removes an object from the focus tree cUIObject
Popup Procedure Activates a modal dialog cUIObject
Previous Procedure Moves the focus to the previous object in the tab order when the Shift+Tab key is pressed cUIObject
Prior_Object_Id Function Called by the switch_back message to determine the object_id of the previous object to go to in the focus tree cUIObject
Save_Confirmation Function Pops up a "Yes/No" confirmation for a save cUIObject
Stop_UI Procedure Terminates a popup_modal message and returns execution to the next line after the one on which this message was sent cUIObject
Switch Procedure Moves the focus to the object returned by the next_object_id function cUIObject
Switch_Back Procedure Moves the focus to the object returned by the prior_object_id function cUIObject
Switch_Next_Group Procedure Moves the focus to the first object in the next_level of the next_object of the prior_level of this object cUIObject
Switch_Next_Scope Procedure Moves the focus to the scope focus of the next scope cUIObject
Switch_Prior_Group Procedure Moves the focus to the last object in the prior_level of the prior_object of the next_level of this object cUIObject
Switch_Prior_Scope Procedure Moves the focus to the scope focus of the prior_scope cUIObject

Inherited Methods from cObject

Name Type Description Defining Class
ChildByIndex Function Can be used to iterate the direct children of an object cObject
ClassSuperClass Function Returns the superclass of the passed class cObject
Create Function Creates an object based on the passed Class Id cObject
CreateNamed Function Creates an object based on the passed Class Id and assigns it a name Name based on a passed name cObject
Destroy Procedure Destroys the object that receives the message and any child objects of that object cObject
Exit_Application Procedure Starts the process of closing an application cObject
IsClassOfClass Function Determines whether the target class is part of the searched class's hierarchy cObject
IsObjectOfClass Function Determines whether the passed class is part of the object's class hierarchy cObject
ObjectClass Function Returns the integer class ID assigned to the class this object is based on cObject
Request_Destroy_Object Procedure Use the Destroy method instead cObject