How to know what window does a pointer specify on ???

  • Thread starter Alexander Vasilevsky
  • Start date
A

Alexander Vasilevsky

Using GetWindow(WinAPI) I get a pointer to the title bar ( IntPtr type). How
I must know on what control he specifies in my app on WinForms. For example
how to know the name of control or title bar.

http://www.alvas.net - Audio tools for C# and VB.Net developers
 
H

Herfried K. Wagner [MVP]

Alexander Vasilevsky said:
Using GetWindow(WinAPI) I get a pointer to the title bar ( IntPtr type).
How I must know on what control he specifies in my app on WinForms. For
example how to know the name of control or title bar.

You may want to use 'Control.FromHandle' if the window handle belongs to
your application (process).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top