Compartir a través de


Win32HelperMethods.FindWindowByPosition Method

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.

Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)

Usage

'Usage
Dim hWndParent As IntPtr
Dim processId As Integer
Dim threadId As Integer
Dim x As Integer
Dim y As Integer
Dim ignoreProcThread As Boolean
Dim returnValue As IntPtr

returnValue = Win32HelperMethods.FindWindowByPosition(hWndParent, processId, threadId, x, y, ignoreProcThread)

Syntax

'Declaration
Public Shared Function FindWindowByPosition ( _
    hWndParent As IntPtr, _
    processId As Integer, _
    threadId As Integer, _
    x As Integer, _
    y As Integer, _
    ignoreProcThread As Boolean _
) As IntPtr
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
)
public static IntPtr FindWindowByPosition (
    IntPtr hWndParent, 
    int processId, 
    int threadId, 
    int x, 
    int y, 
    boolean ignoreProcThread
)
public static function FindWindowByPosition (
    hWndParent : IntPtr, 
    processId : int, 
    threadId : int, 
    x : int, 
    y : int, 
    ignoreProcThread : boolean
) : IntPtr

Parameters

  • hWndParent
    Specifies the parent window.
  • processId
    Specifies the process ID.
  • threadId
    Specifies the thread ID.
  • x
    Specifies the x co-ordinate
  • y
    Specifies the y co-ordinate
  • ignoreProcThread
    True to ignore processor thread, otherwise false.

Return Value

Type: IntPtr

Remarks

The position, specified by the x, y parameters, are relative to the upper left corner coordinates of the root window identified by hWndParent.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

Win32HelperMethods Class
Win32HelperMethods Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.