gui外观似乎不正确... [英] gui appearance doesn't seem right...

查看:83
本文介绍了gui外观似乎不正确...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在与winapi一起工作,并且想知道已经有一段时间了,为什么我仅使用winapi创建的按钮看起来比Windows窗体之类的按钮差很多?我制作的按钮全都是矩形,扁平,灰色,感觉有点像Windows 2000,然后窗体中的按钮看起来圆滑,有光泽,就像win 7计算器上的按钮一样.显然正在发生一些曲折的事情.

Hi, i''ve been working with winapi and wondering for awhile now, why the buttons i create just using winapi look so much worse than the buttons from say a windows form or the like? the buttons i make are all rectangular, flat, gray, and feels a little too much like windows 2000, and then the buttons in a form look sleek, shiny, and like the ones off the win 7 calculator. something devious is obviously afoot. any help here?

推荐答案

因为当您可能未启用Windows Theme东西时,它们具有标准Windows控件的外观.
Because when you''re probably not enabling the Windows Theme stuff, so they take on the appearance of standard Windows controls.


我认为这与视觉主题有关.以下链接可能对您有帮助:

启用视觉样式 [如何:启用视觉样式(Visual Basic) [ ^ ]
I would think it has to do with Visual themes. The following links might help you:

Enabling Visual Styles[^]

How to: Enable Visual Styles (Visual Basic)[^]


这篇关于gui外观似乎不正确...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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