Get window handle
-
I've a strange question: how to get the handle of the window that is behind my app's window and in a specific point. Is it also possible to get the name of the Win32 control (I mean the UI control), if there is one, in that point? Thanks
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi. [ENG] Tozzi is right: Gaia is obliterating us.
-
I've a strange question: how to get the handle of the window that is behind my app's window and in a specific point. Is it also possible to get the name of the Win32 control (I mean the UI control), if there is one, in that point? Thanks
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi. [ENG] Tozzi is right: Gaia is obliterating us.
Look at this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getforegroundwindow.asp You can use the Spy++ tool in Visual Studio to get the lpClassName. You could also use this tool: http://www.codeproject.com/dialog/windowfinder.asp