在 C++ 中创建基于 HTML 的 Windows UI 的工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6392185/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:05:49  来源:igfitidea点击:

Tools to create HTML-Based Windows UI in C++

c++windowsuser-interface

提问by Dan

I'm looking for suggestions on technologies to design a windows UI that's powered by HTML. I've run across HTMLayoutwhich seems pretty good if not perhaps a bit limited. Are there any other technologies that would provide a good platform for creating an application UI based on HTML?

我正在寻找有关设计由 HTML 提供支持的 Windows UI 的技术的建议。我遇到过HTMLayout,它看起来不错,如果不是有点有限的话。是否有任何其他技术可以为创建基于 HTML 的应用程序 UI 提供良好的平台?

采纳答案by Cristian Adam

You could use chromiumembedded. You get the power of Google's Chrome in your application.

您可以使用chromiumembedded. 您可以在您的应用程序中获得 Google Chrome 的强大功能。

Evernote used CEF (Chromium Embedded Framework) when they moved from C# back to C++.

Evernote 在从C# 移回 C++时使用了 CEF(Chromium 嵌入式框架)。

Unlike HTMLayout, CEF has a permissive license, which allows usage in commercial applications without paying royalties. The drawback would be the huge binary size.

与 HTMLayout 不同,CEF 有一个宽松的许可证,允许在商业应用中使用而无需支付版税。缺点是巨大的二进制大小。

回答by AJG85

Qthas the ability to use CSS to layout ui and some other cool things. MSHTMLnamespace and COM interfaces allow for some ui styles as well. That's all I know of off the top of my head for C++

Qt能够使用 CSS 来布局 ui 和其他一些很酷的东西MSHTML命名空间和 COM 接口也允许一些 ui 样式。这就是我对 C++ 的了解

Windows 8when released will provide some sort of API using HTML5 and JavaScript for tile based applications in the start screen.

Windows 8发布时将在开始屏幕中为基于磁贴的应用程序提供某种使用 HTML5 和 JavaScript 的 API。