Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道如何找到所有 msn Messenger 当前打开的对话窗口的 HWND 吗?
或者我如何找到当前关注的文本框的 HWND?
泰
您可以使用 Visual Studio 附带的 Spy++ 工具来获取任何正在运行的程序的任何窗口的类名。然后,您可以将该类名传递给FindWindow()以获取相应窗口的句柄。
我检查了系统上安装的 Windows Live Messenger,对话窗口的类名是:“IMWindowClass”。