Hovering Mouse
-
Hi .. i would like to get the handle to the top level window where the mouse is hovering ... whether it is hovering in MY application or another application. Thanks for your time.
-
Hi .. i would like to get the handle to the top level window where the mouse is hovering ... whether it is hovering in MY application or another application. Thanks for your time.
Try to use the api function WindowFromPoint:
[System.Runtime.InteropServices.DllImport("user32.dll")] static extern int WindowFromPoint(int x,int y);
Then you can get the handle of the window that is just below the (x,y) point in absolutes coordinates (relative to the top-left corner of the screen). Pablo Hernandez Valdes -
Try to use the api function WindowFromPoint:
[System.Runtime.InteropServices.DllImport("user32.dll")] static extern int WindowFromPoint(int x,int y);
Then you can get the handle of the window that is just below the (x,y) point in absolutes coordinates (relative to the top-left corner of the screen). Pablo Hernandez Valdesthank you, pablo ... that sounds like just what i am after