Skip to content

Methods for cWebView2Browser

View method list in hierarchical order.

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 The Activate_scope message is used to activate 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
AddScriptToExecuteOnDocumentCreated Function Adds a script that will be executed during the loading of the future documents Adds a script that will be executed during the loading of the future documents. cWebView2Browser
AddWebResourceRequestedFilter Procedure Sets up a resource request filter that will enable the OnWebResourceRequested for these requests cWebView2Browser
Adjust_Logicals Procedure Sets the logical coordinates for size and location to the best approximations of the actual physical coordinates of the object DfComUIObject
Bell Procedure Rings the PC bell cUIObject
Cancel Procedure Used to terminate the current level of a start_ui or ui_accept This message is used to terminate the current level of a start_ui or ui_accept with a return value of msg_cancel. cUIObject
CanCopy Function Determines whether a Copy operation can be successfully completed Determines whether a Copy operation can be successfully completed. cUIObject
CanCut Function Determines whether a Cut operation can be successfully completed Determines whether a Cut operation can be successfully completed. cUIObject
CanDelete Function Determines whether a Delete operation can be successfully completed Determines whether a Delete operation can be successfully completed. cUIObject
CanPaste Function Determines whether a Paste operation can be successfully completed Determines whether a Paste operation can be successfully completed. cUIObject
CanSelect Function Determines whether a Select operation can be successfully completed Determines whether a Select operation can be successfully completed. cUIObject
CanUndo Function Determines whether n Undooperation can be successfully completed Determines whether an Undo operation can be successfully completed. cUIObject
CapturePreview Procedure Captures the currently displayed document into an image Captures the currently displayed document into an image. cWebView2Browser
ChildByIndex Function Can be used to iterate the direct children of an object ChildByIndex is a function that can be used to iterate the direct children of an object. cObject
ClassSuperClass Function Returns the superclass of the passed class This returns the superclass of the passed class. cObject
ClearVirtualHostNameToFolderMapping Procedure Clears a virtual hostname mapping created using SetVirtualHostNameToFolderMapping cWebView2Browser
ComAddRef Procedure DfInPlaceComObject
ComQueryInterface Function DfInPlaceComObject
Confirm Function Pops up a "Yes/No" confirmation The Confirm function can be used to pop up a "Yes/No" confirmation. cUIObject
Create Function Creates an object based on the passed Class Id The Create function is used to dynamically create objects. cObject
CreateComObject Procedure Sent to create and connect to an instance of the ActiveX control associated with this object DfInPlaceComObject
CreateNamed Function Creates an object based on the passed Class Id and assigns it a name Name based on a passed name Creates an object based on the passed Class Id and assigns it a name Name based on a passed name. cObject
Data_Loss_Confirmation Function Pops up a "Yes/No" confirmation for data loss cUIObject
Deactivate Procedure Removes the object from the focus tree The Deactivate message removes the object from the focus tree and, if successful, sends the Deactivating message. cUIObject
Default_Key Procedure Used in On_key command to restore standard accelerator for an object The Default_Key message is only used as part of the On_Key command. cUIObject
Delete_Confirmation Function Pops up a "Yes/No" confirmation for a delete cUIObject
Destroy Procedure Destroys the object that receives the message and any child objects of that object The Destroy message destroys the object that receives the message. cObject
DialogToGui Function This is used to convert dialog units to gui units. DfComUIObject
ExecuteScript Function Executes a script within the current top-level document of the WebView2 control Executes a script within the current top-level document of the WebView2 control. cWebView2Browser
Exit_Application Procedure Starts the process of closing an application The Exit_Application message is used to close the program. cObject
Exit_Loss_Confirmation Function Pops up a "Yes/No" confirmation for exit loss Prompts: Changes Exist. cUIObject
GoBack Procedure Navigates one step back in the browser history Navigates one step back in the browser history. cWebView2Browser
GoForward Procedure Navigates one step forward in the browser history Navigates one step forward in the browser history. cWebView2Browser
GuiClientSize Function This returns an object's client area size as a folded integer value This returns an object's client area size as a folded 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 This returns an object's window bounding size as a folded value. DfComUIObject
Help Procedure Overridden in the help_system to activate context-sensitive help By default, this message does nothing. cUIObject
IsClassOfClass Function Determines whether the target class is part of the searched class's hierarchy cObject
IsComObjectCreated Function Tests to see if a COM object exists by getting the value of IsComObjectCreated You can test to see if a COM object exists by getting the value of IsComObjectCreated. cComActiveXControl
IsObjectOfClass Function Determines whether the passed class is part of the object's class hierarchy This returns True if the passed class is part of the object's class hierarchy. cObject
Item Procedure Set 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
Navigate Procedure Initiates a browser navigation to the provided URL Initiates a browser navigation to the provided URL. cWebView2Browser
NavigateToString Procedure Renders the provided HTML as top-level document Renders the provided HTML as top-level document. cWebView2Browser
Next Procedure Moves the focus to the next object in the tab order when the Tab key is pressed Next 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 The No_Confirmation function is used to cancel a confirmation message. cUIObject
None Procedure Does nothing - used by on_key and commands to stop a key assignment This message is always used to make a on_key assignment or an add_item message do nothing. cUIObject
ObjectClass Function Returns the integer class ID assigned to the class this object is based on Returns the integer class ID assigned to the class this object is based on. cObject
Ok Procedure Used on items and accelerator key definitions to terminate the current level of start_ui or ui_accept cUIObject
OpenDevToolsWindow Procedure Opens the developer tools window Opens the developer tools window. cWebView2Browser
Page_Object Procedure Adds or removes an object from the focus tree Adds or removes an object from the focus tree. cUIObject
Popup Procedure Activates a modal dialog Popup activates a modal dialog. cUIObject
PostWebMessageAsJson Procedure Posts a message to the document loaded inside the WebView2 control 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 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 Posts a message to the document loaded inside the WebView2 control. cWebView2Browser
Previous Procedure Moves the focus to the previous object in the tab order when the Shift+Tab key is pressed Previous 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
RegisterComEvent Procedure DfInPlaceComObject
RegisterPropertyChangeEvent Procedure DfInPlaceComObject
Release_Mouse_Capture Procedure Restores normal mouse capture DfComUIObject
ReleaseComObject Procedure Releases ActiveX control associated with this object ReleaseComObject is sent to release ActiveX control associated with this object. DfInPlaceComObject
Reload Procedure Reloads the current document 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
Request_Destroy_Object Procedure Use the Destroy method instead This method is used to destroy an object and all of its children. cObject
Request_Status_Help Procedure Sent when an object is about to take or lose the focus The Request_Status_Help message is sent when an object is about to take or lose the focus. cComActiveXControl
Save_Confirmation Function Pops up a "Yes/No" confirmation for a save The Save_Confirmation function pops up a "Yes/No" confirmation for a save. cUIObject
SetVirtualHostNameToFolderMapping Procedure Creates a virtual mapping between the provided host name and a local folder on disk 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 Stops all navigations and pending resource fetches. cWebView2Browser
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_Area Procedure Moves the focus to the next "area" within a view The Switch_Next_Area navigation message moves the focus to the next "area" within a view. cComActiveXControl
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 The Switch_Next_Scope message moves the focus to the scope focus of the next scope. cUIObject
Switch_Prior_Area Procedure Moves the focus to the previous "area" within a view The Switch_Prior_Area navigation message moves the focus to the previous "area" within a view. cComActiveXControl
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 The Switch_Prior_Scope message moves the focus to the scope focus of the prior_scope. cUIObject
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