开发者

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

开发者 https://www.devze.com 2023-01-06 22:38 出处:网络
Ho开发者_开发百科w to get the Window Class Name and Id fromHWND? I searched but found the opposite is more popular.

Ho开发者_开发百科w to get the Window Class Name and Id from HWND?

I searched but found the opposite is more popular.

Any thoughts?!?!?


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)


GetClassName: http://msdn.microsoft.com/en-us/library/ms633582(v=VS.85).aspx

What do you mean with Id?


GetClassName is exactly what you're looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消