编程在C +运API:如何获取Windows 7查找控制? [英] Programming In C + Win API: How To Get Windows 7 Look For Controls?

查看:211
本文介绍了编程在C +运API:如何获取Windows 7查找控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C和WinAPI的,没有C ++或C#编程严格。我是一个初学者,刚学画画控制等的事情是,当我创建Windows或其他控件像命令按钮,它们有Windows本地的样子。在这看看:

I am programming strictly in C and WinAPI, no C++ or C#. I am a beginner and just learning to draw controls etc. The thing is that when I create Windows or other controls like Command Buttons, they have Windows Native look. Take a look at this:

而在Windows 7中,命令按钮看起来是这样的:

But in Windows 7, the command buttons look like this:

现在,我如何才能在我的程序看起来像命令按钮。它甚至有可能?
我下面这个教程,供参考: HTTP://zet$c$c.com/gui / WINAPI /

Now, how do I get command buttons in my program to look like that. Is it even possible? I am following this tutorial, for reference: http://zetcode.com/gui/winapi/

感谢。

推荐答案

您能够通过提供XML清单为您的应用程序的视觉风格,无论是作为一个单独的文件或嵌入的资源。请参见启用视觉样式的详细信息

You enable visual styles for your app by providing an XML manifest, either as a separate file or as an embedded resource. See Enabling Visual Styles for details.

这篇关于编程在C +运API:如何获取Windows 7查找控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆