- 积分
- 598
- 最后登录
- 2024-4-23
- 精华
- 0
- 阅读权限
- 40
- 主题
- 35
- UID
- 3526898
- 帖子
- 1346
- PB币
- 657
- 威望
- 10
- 贡献
- 0
- 技术
- 57
- 活跃
- 978
水稻
- UID
- 3526898
- 帖子
- 1346
- PB币
- 657
- 贡献
- 0
- 技术
- 57
- 活跃
- 978
|
12F
发表于 2018-3-21 13:53:38
IP属地四川
|只看该作者
距离edge发布已经三年了,RS4终于有办法让win32也用上edge了(不是hacked方法)
需要Win10RS4、Win10RS4SDK,然后。。。- #include <winrt/Windows.Web.UI.h>
- #include <winrt/Windows.Web.UI.Interop.h>
- #include <winrt/Windows.Foundation.h>
- #pragma comment(lib, "windowsapp.lib")
- using namespace winrt::param;
- using namespace winrt::Windows::Foundation;
- using namespace winrt::Windows::Web::UI;
- using namespace winrt::Windows::Web::UI::Interop;
- WebViewControlProcess webviewprocess(nullptr);
- IAsyncOperation<WebViewControl> asyncwebview(nullptr);
- WebViewControl webview(nullptr);
复制代码- webviewprocess = WebViewControlProcess();
- asyncwebview = webviewprocess.CreateWebViewControlAsync((int64_t)hWnd,
- Rect(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top));
- asyncwebview.Completed([](IAsyncOperation<WebViewControl> const& sender, AsyncStatus args) {
- webview = sender.GetResults();
- webview.Navigate(Uri(hstring(L"http://html5test.com")));
- });
复制代码 就行了,好像是使用Win32WebViewHost.exe进程实现渲染和交互的。 |
|