如何从HWND获取窗口类名称和ID? [英] How to get the Window Class Name and Id from HWND?

查看:1142
本文介绍了如何从HWND获取窗口类名称和ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从HWND获取窗口类名和ID?

How to get the Window Class Name and Id from HWND?

我搜索,但发现相反的是更受欢迎。

I searched but found the opposite is more popular.

任何想法?!?!?

推荐答案

Andreas Arthur 演示如何获取类名。 Id可能是指子窗口的窗口标识符;

Answers by Andreas and Arthur show how to get the class name. With 'Id' perhaps you mean the window identifier for child windows;

GetWindowLong(HWnd, GWL_ID)

这篇关于如何从HWND获取窗口类名称和ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆