如何让我的应用程序使用Windows主题?

电脑杂谈  发布时间:2020-01-19 18:33:33  来源:网络整理

wince 导航软件哪个好_wince主题软件_wince软件合集

百度翻译此文有道翻译此文

问 题

I'm working with some windows API to create a little application.I already created the buttons, windows, alright.

But the problem is the components I created don't look like the OS theme. They look very simple:

As you can see on image

See the button as example.

How do I enable the Windows theme? It can be in C or Delphi.

解决方案

For an application using windows controls, that is documented in this msdn article

Edit: To make a long story short, Windows needs to know for an application if it was intended to use the new style controls. Some older apps just aren't compatible with the new skinned looks of XP and later. Each exe should therefore declare with which version it is compatible in a manifest, an embedded xml file in the executable. The manifest is used for other things like declaring what you are or aren't compatible with (DLL versions, 120 dpi) as well as registration-free com.

wince主题软件_wince 导航软件哪个好_wince软件合集

本文地址:IT屋 How do I make my application use the Windows theme?

问 题

我正在使用一些Windows API来建立一个小应用程序。

我已经创建了图标,窗口,好的。

但问题是我创建的模块看起来不像操作系统主题。他们看起来很简单:

以按钮为例。

如何启用Windows主题?它可以在C或Delphi中。

解决方案

对于使用Windows控件的应用程序,这在这个msdn文章

wince软件合集_wince主题软件_wince 导航软件哪个好

编辑:为了增加故事时间,如果应使用新的风格控件,则Windows必须清楚应用程序。一些较旧的应用程序与XP及之后的新皮肤外观不兼容。因此,每个exe需要在清单中声明哪些版本是兼容的,即可执行文件中的一个嵌入的xml文件。清单用于其它事情,例如声明您是或不兼容的(DLL版本,120 dpi)以及免注册。

本文地址:IT屋 如何让我的应用程序使用Windows主题?

官方微信

扫一扫关注IT屋

微信公众号搜索 “ IT屋 ” ,选择关注

与百万开发者在一起

官方交流群:IT屋-技术交流群③

Google Facebook Youtube 科学上网》戳这里《

百度翻译此文有道翻译此文

问 题

wince软件合集_wince 导航软件哪个好_wince主题软件

我正在使用一些Windows API来建立一个小应用程序。

我已经创建了图标,窗口,好的。

但问题是我创建的模块看起来不像操作系统主题。他们看起来很简单:

以按钮为例。

如何启用Windows主题?它可以在C或Delphi中。

解决方案

对于使用Windows控件的应用程序,这在这个msdn文章

编辑:为了增加故事时间,如果应使用新的风格控件,则Windows必须清楚应用程序。一些较旧的应用程序与XP及之后的新皮肤外观不兼容。因此,每个exe需要在清单中声明哪些版本是兼容的wince主题软件wince主题软件,即可执行文件中的一个嵌入的xml文件。清单用于其它事情,例如声明您是或不兼容的(DLL版本,120 dpi)以及免注册。

本文地址:IT屋 如何让我的应用程序使用Windows主题?

问 题

wince主题软件_wince软件合集_wince 导航软件哪个好

I'm working with some windows API to create a little application.I already created the buttons, windows, alright.

But the problem is the components I created don't look like the OS theme. They look very simple:

As you can see on image

See the button as example.

How do I enable the Windows theme? It can be in C or Delphi.

解决方案

For an application using windows controls, that is documented in this msdn article

Edit: To make a long story short, Windows needs to know for an application if it was intended to use the new style controls. Some older apps just aren't compatible with the new skinned looks of XP and later. Each exe should therefore declare with which version it is compatible in a manifest, an embedded xml file in the executable. The manifest is used for other things like declaring what you are or aren't compatible with (DLL versions, 120 dpi) as well as registration-free com.

本文地址:IT屋 How do I make my application use the Windows theme?

官方微信

扫一扫关注IT屋

微信公众号搜索 “ IT屋 ” ,选择关注与百万开发者在一起


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/bofangqi/article-137465-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      • 吴楠楠
        吴楠楠

        经济下行压力大是最好的借口

      • 铁炮冢叶子
        铁炮冢叶子

        以身作则

      热点图片
      拼命载入中...