[译]ShowWindowTree实用程序
By robot-v1.0
本文链接 https://www.kyfws.com/applications/showwindowtree-utility-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1035 个词 阅读量 0[译]ShowWindowTree实用程序
原文地址:https://www.codeproject.com/Articles/1749/ShowWindowTree-Utility
原文作者:Rocky Moore
译文由本站 robot-v1.0 翻译
前言
Display the hierarchy of windows (hidden or not) on your system along with a few options to modifiy them
显示系统上窗口的层次结构(是否隐藏)以及一些修改窗口的选项
介绍(Introduction)
ShowWindowTree是一个类似于Spy ++的实用程序,它将通过当前系统的类名和文本值显示窗口层次结构.它不仅显示它们,还使您可以对窗口进行一些修改,还可以将订单保存到文件中以供以后参考.(ShowWindowTree is a utility like Spy++ that will display the window hierarchy by class name and text values of your current system. It does not only display them, but will allow you to make some modifications to windows along with the ability to saving the order to a file to pull back in at a later time for reference.)
特征(Features)
- 通过Windows系统的窗口类名称和标题查看整个窗口层次结构(See the entire window hierarchy by window class name and title of the Windows system)
- 查看隐藏的窗口(View windows that are hidden)
- 启用或禁用窗口(Enable or Disable a window)
- 隐藏或显示窗口(Hide or Show a window)
- 调整窗口大小(Resize a window)
- 复制课程名称和文本(Copy the class name and Text)
- 保存层次结构窗口列表以供以后检索(Save hierarchy window lists to retrieve at a later time)
当您启动程序时,显示将为空白.点击(When you boot the program the display will be blank. Click on the)**扫描**要构建或刷新树形视图时,请单击. (可选)您可以在"要构建的框架名称"(Frame Name to Build)编辑中输入顶级窗口类名称,这将导致扫描仅包含嵌套在您指定的类名称下的窗口.但是,这必须是顶层窗口(API窗口(button when you want to build or refresh the tree view. Optionally, you can enter a top level window class name in the “Frame Name to Build” edit which will cause the scan to only contain windows nested under the class name you specified. This must be a top level window however (a window the API)
FindWindow()
就能找到).(will be able to locate).)
显示屏将显示窗口的类名称以及通过发出(The display will show the class name of the window along with any text that may be found by issuing a) WM_GETTEXT
到窗户.这是我创建时对我来说唯一重要的信息.(to the window. This was the only information of importance to me at the time I created it.)
每个条目的左侧是红色或绿色的椭圆形.红色的椭圆形表示窗口是隐藏的,而绿色的则表示窗口是隐藏的.(To the left of each entry is a red or green oval. The red oval means the window is hidden while the green means it is shown.)
您可以右键单击已选择的条目,它将为您提供选项菜单.这些选项的功能应该很明显.(You can right click on an entry that you have already selected and it will give you a menu of options. The functionality of those options should be obvious.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VC7.0 C++ VC6 WinXP Windows Win2K MFC Visual-Studio Dev 新闻 翻译