windows 在哪里可以找到所有窗口类名称的列表?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6660089/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:23:30  来源:igfitidea点击:

Where can I find a list of all window class names?

windowswinapi

提问by baruchiro

I want to use the function "findwindowex" (windows API) I wanted to know what appropriate values ??for the parameter "ClassName". Are the tables that are hereshow the possible values??? If not - where can I find details of all types "ClassName"? (Am I understood? I do not know good English.)

我想使用函数“findwindowex”(windows API)我想知道参数“ClassName”的合适值是什么?此处的表格是否显示了可能的值???如果没有 - 我在哪里可以找到所有类型“ClassName”的详细信息?(我听懂了吗?我不懂英文。)

回答by David Heffernan

No, those are the names of some classes registered by the system. A great many Windows applications will be built with classes registered by those applications.

不,这些是系统注册的一些类的名称。许多 Windows 应用程序将使用这些应用程序注册的类构建。

If you wish to find the name of the window class used by a particular window, use GetClassName().

如果您希望查找特定窗口使用的窗口类的名称,请使用GetClassName().

回答by gordy

You need to use a tool like SPY.EXE that's included somewhere as part of the win32 SDK. It shows the classname of the window currently under your cursor.

您需要使用像 SPY.EXE 这样的工具,它作为 win32 SDK 的一部分包含在某处。它显示当前光标下的窗口的类名。

回答by Jesus Ramos

Microsoft Spy++ I believe when you hover over the window after clicking the Find button it shows all the information about the window.

Microsoft Spy++ 我相信当您单击“查找”按钮后将鼠标悬停在窗口上时,它会显示有关该窗口的所有信息。