NetUIHWND and DirectUIHWND(NetUIHWND 和 DirectUIHWND)
问题描述
使用Spy++工具,似乎有些微软应用使用了NetUIHWND和DirectUIHWND窗口类;例如:Word 2010 的功能区似乎是 NetUIHWND,而 Windows Live Messenger 窗口似乎是 DirectUIHWND.
Using Spy++ tool, it seems that some Microsoft apps use NetUIHWND and DirectUIHWND window classes; e.g.: Word 2010's ribbon seems to be a NetUIHWND, instead Windows Live Messenger window seems to be a DirectUIHWND.
这些窗口类似乎承载了一些很酷的图形(带有阴影、渐变等);是否可以在我们自己的 Win32 C++ 应用程序中使用这些窗口类?有没有关于它们的文档?
These window classes seem to host kind of cool graphics (with shadows, gradients, etc.); is it possible to use these window classes in our own Win32 C++ apps? Is there any documentation about them?
推荐答案
是的,它已经存在一段时间了.但它在 Windows7 中得到了特别多的使用.不幸的是,他们把这个留给自己,它是无证的.您可以尝试对其进行逆向工程,使用 ListView 作为它可能执行的操作的指南.但是您的代码几乎肯定会在下一版本的 Windows 中崩溃.我认为这是不记录的重点,他们需要一些他们不必保持向后兼容的东西,以便能够改善操作系统的外观.
Yes, it has been around for a while already. But it gets especially a lots of usage in Windows7. Unfortunately, they keep this one to themselves, it is undocumented. You can try to reverse-engineer it, use a ListView as a guide to what it might do. But your code will almost certainly break in the next version of Windows. Which I think was the point of not documenting it, they need something they don't have to keep backwards compatible to be able to improve the look-and-feel of the operating system.
这篇关于NetUIHWND 和 DirectUIHWND的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:NetUIHWND 和 DirectUIHWND
基础教程推荐
- 我有静态或动态 boost 库吗? 2021-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 这个宏可以转换成函数吗? 2022-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 如何通过C程序打开命令提示符Cmd 2022-12-09
