Win32HelperMethods.FindWindowByControlId 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 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