Share via


Win32HelperMethods.FindWindowByControlId Method

Definition

Retrieves the handle of the window that has matching Control ID through a BFS (Breadth-First Search) of the window handle tree rooted at hWndParent.

public:
 static IntPtr FindWindowByControlId(IntPtr hWndParent, int processId, int threadId, int controlId, int matchCount, bool ignoreProcThread);
public static IntPtr FindWindowByControlId (IntPtr hWndParent, int processId, int threadId, int controlId, int matchCount, bool ignoreProcThread);
static member FindWindowByControlId : nativeint * int * int * int * int * bool -> nativeint
Public Shared Function FindWindowByControlId (hWndParent As IntPtr, processId As Integer, threadId As Integer, controlId As Integer, matchCount 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.

controlId
Int32

Specifies the control ID.

matchCount
Int32

Specifies the match count.

ignoreProcThread
Boolean

True to ignore processor thread, otherwise false.

Returns

IntPtr

nativeint

Applies to