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

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date 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
 
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).
 
Back
Top