Jump to content

[Solved] How Can I Get the ClassNN of a Control, from its Handle?

Go to solution Solved by JohnOne,

Recommended Posts



Assume you have a Handle to a control, for example via using ControlGetFocus("").

You now have a Handle, and you want to get the ClassNN of that control..

What should be used?


Thank you


Edited by Zohar
Link to post
Share on other sites
  • Moderators

Something like this perhaps?

#include <WinAPI.au3>

$hwnd = WinGetHandle("Untitled", "") ;Notepad
MsgBox(0, "", _WinAPI_GetClassName($hwnd))

Edit: Sorry, I misread - you were looking for class name of the control, not the window.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...