正常看按钮与c ++ / win32 [英] Normal looking button with c++ / win32

查看:113
本文介绍了正常看按钮与c ++ / win32的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做一个按钮,但它总是看起来像windows 95平面按钮。如何让它看起来像vista风格?

I'm trying to make a button but it always looks like windows 95 flat button. How do I make it look vista style?

	hWndEdit = CreateWindowA("button", "Test",
		WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON,
100, 20, 140, 20, hWnd, NULL, NULL, NULL);

哪里ami我错了?
感谢

Where ami I going wrong? Thanks

推荐答案

它只能在Vista中看到Vista风格,您的应用程序还必须按照 http:/ / /msdn.microsoft.com/en-us/library/aa289524(v=VS.71).aspx 以启用视觉样式。

It can only look Vista style in Vista, mind you. Your application must also embed a manifest as per http://msdn.microsoft.com/en-us/library/aa289524(v=VS.71).aspx to enable visual styles.

这篇关于正常看按钮与c ++ / win32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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