Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus on VS 2022 in article "Win32 sample app" #3242

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion microsoft-edge/webview2/get-started/win32.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This tutorial starts by opening an existing Win32 app project that has WebView2

<!-- A completed version of this tutorial project is available in the WebView2Samples repo: [Win32_GettingStarted](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/GettingStartedGuides/Win32_GettingStarted#readme). -->

This tutorial does not have you create a new project; you don't use a project template in Visual Studio to create a new project. Instead, you start with the completed project that's in the repo.
This tutorial starts with the completed project that's in the repo, which already has WebView2 code added. (This tutorial doesn't have you create a new project; you don't use a project template in Visual Studio to create a new project, and then add WebView2 code.)


<!-- ------------------------------ -->
Expand Down
2 changes: 1 addition & 1 deletion microsoft-edge/webview2/how-to/machine-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ms.author: msedgedevrel
ms.topic: conceptual
ms.service: microsoft-edge
ms.subservice: webview
ms.date: 10/26/2022
ms.date: 08/01/2024
---
# Set up your Dev environment for WebView2

Expand Down
12 changes: 9 additions & 3 deletions microsoft-edge/webview2/samples/webview2apissample.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ms.date: 08/11/2023
---
# Win32 sample app

The **WebView2APISample** app demonstrates how to use the WebView2 control and WebView2 APIs to add features to a Win32 C++ app.
The **WebView2APISample** app demonstrates how to use the WebView2 control and WebView2 APIs to add features to a Win32 C++ app. This is the main Win32 sample, and has test webpages for the latest features and APIs, and hundreds of menuitems to test various APIs.

* Sample name: **WebView2APISample**
* Repo directory: [WebView2APISample](https://github.com/MicrosoftEdge/WebView2Samples/tree/main/SampleApps/WebView2APISample)
Expand All @@ -35,8 +35,14 @@ The running **WebView2APISample** app window shows the WebView2 SDK version and
![Sample App Snapshot](https://raw.githubusercontent.com/MicrosoftEdge/WebView2Samples/master/SampleApps/WebView2APISample/documentation/screenshots/sample-app-screenshot.png)
-->

If this is your first time using WebView, we recommend first following the tutorial [Get started with WebView2 in Win32 apps](../get-started/win32.md), which goes over how to create a WebView2 app and walks through some basic WebView2 functionality. That particular tutorial doesn't start with you creating a new Win32 project using a project template; instead, it starts with a finished project in the WebView2Samples repo, and walks you through the added WebView2 code.
<!-- the getstart tut should probably create new app from project template, but, currently starts from existing project, that is provided now as a finished project -->
Suggested sequence of using articles and provided projects:

1. Get this **WebView2APISample** to build and run, using the present article. Even if your own app is for a different platform.

1. If you're most interested in a platform other than Win32, use the Sample article for your platform; see [Sample apps](../code-samples-links.md).

1. Use the Get Started article for the platform you're interested in; see [Getting Started tutorials](../get-started/get-started.md).


For details of events and API handlers in WebView2, see [WebView2 API Reference](../webview2-api-reference.md).

Expand Down