|
2 | 2 |
|
3 | 3 | This is a hybrid application built with the [Microsoft Edge WebView2](https://docs.microsoft.com/en-us/microsoft-edge/hosting/webview2) control.
|
4 | 4 |
|
5 |
| - |
| 5 | + |
6 | 6 |
|
7 | 7 |
|
8 | 8 | The WebView2APISample is an example of an application that embeds a WebView within a Win32 native application. It is built as a Win32 [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) project and makes use of both C++ and HTML/CSS/JavaScript in the WebView2 environment.
|
@@ -41,7 +41,7 @@ This hybrid approach allows you to create and iterate faster using web technolog
|
41 | 41 |
|
42 | 42 | Both of these parts of the Sample App are displayed in the image below:
|
43 | 43 |
|
44 |
| - |
| 44 | + |
45 | 45 | 1. Section One: The top part of the Sample App is a Win32 component written in C++. This part of the application takes in UI inputs from the user and uses them to control the WebView.
|
46 | 46 |
|
47 | 47 | 2. Section Two: The main part of the Sample App is a WebView that can be repurposed using standard web technologies (HTML/CSS/JavaScript). It can be navigated to websites or local content.
|
@@ -74,7 +74,7 @@ This component handles commands from the View menu, and any functionality relate
|
74 | 74 | #### 8. ScenarioWebMessage.cpp and ScenarioWebMessage.html
|
75 | 75 | This component is created when you select the Scenario/Web Messaging menu item. It implements an example application with a C++ part and an HTML+JavaScript part, which communicate with each other by asynchronously posting and recieving messages.
|
76 | 76 |
|
77 |
| - |
| 77 | + |
78 | 78 |
|
79 | 79 | #### 9. ScenarioAddRemoteObject.cpp and ScenarioAddRemoteObject.html
|
80 | 80 | This component is created when you select the Scenario/Remote Objects menu item. It demonstrates communication between the native app and the HTML webpage by means of remote object injection. The interface of the remote object is declared in RemoteObjectSample.idl, and the object itself is implemented in RemoteObjectSampleImpl.cpp.
|
@@ -180,7 +180,7 @@ First, navigate to the ScenarioWebMessage application within the Sample App, usi
|
180 | 180 |
|
181 | 181 | The WebView should display a simple webpage titled: "WebMessage sample page". The code for this page can be found in the ScenarioWebMessage.html file.
|
182 | 182 |
|
183 |
| - |
| 183 | + |
184 | 184 |
|
185 | 185 | To better understand ScenarioWebMessage functionality, you can either follow the instructions on the page or the steps detailed below.
|
186 | 186 |
|
|
0 commit comments