简体   繁体   English

如何创建一个窗口WIN32?

[英]how to create a Window WIN32?

I just wondering how Windows create this window? 我只是想知道Windows如何创建此窗口?

Windows安全认证

I mean what styles applied to that window, I just want these styles on my project. 我的意思是什么样式应用于该窗口,我只想在项目中使用这些样式。

As info I use MS Visual C++ 2008. 作为信息,我使用MS Visual C ++ 2008。

Thanks 谢谢

There's no easy way! 没有简单的方法! There's no public API for using "the Windows 8 style", or the style of any other release. 没有使用“ Windows 8样式”或任何其他发行版样式的公共API。 You'll just have to replicate it by hand, comparing it pixel-for-pixel against a screenshot. 您只需要手工复制它,并将其逐像素与屏幕截图进行比较即可。 Then update your application with the next release of Windows! 然后使用下一版Windows更新您的应用程序!

Because they change the metrics of these sorts of dialogs with each release, they can't produce a public library for "system-themed dialogs", because Microsoft would then be unable to change the design for fear of breaking someone's application that maybe uses a bit too much text, for example. 由于他们在每个发行版中都会更改此类对话框的指标,因此它们无法为“系统主题对话框”生成公共库,因为那样一来,Microsoft便会因为担心破坏某人可能使用某个应用程序的应用程序而无法更改其设计。例如,文本太多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM