Win32HelperMethods.FindWindowByPosition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the handle of the window whose upper left corner coordinates matches the position given through a BFS (Breadth-First Search) of the window handle tree rooted at hWndParent.
public:
static IntPtr FindWindowByPosition(IntPtr hWndParent, int processId, int threadId, int x, int y, bool ignoreProcThread);
public static IntPtr FindWindowByPosition (IntPtr hWndParent, int processId, int threadId, int x, int y, bool ignoreProcThread);
static member FindWindowByPosition : nativeint * int * int * int * int * bool -> nativeint
Public Shared Function FindWindowByPosition (hWndParent As IntPtr, processId As Integer, threadId As Integer, x As Integer, y As Integer, ignoreProcThread As Boolean) As IntPtr
Parameters
- hWndParent
-
IntPtr
nativeint
Specifies the parent window.
- processId
- Int32
Specifies the process ID.
- threadId
- Int32
Specifies the thread ID.
- x
- Int32
Specifies the x co-ordinate
- y
- Int32
Specifies the y co-ordinate
- ignoreProcThread
- Boolean
True
to ignore processor thread, otherwise false
.
Returns
nativeint
Remarks
The position, specified by the x, y parameters, are relative to the upper left corner coordinates of the root window identified by hWndParent.