Share via


Win32HelperMethods.FindWindowByCaptionAndClassText Method

Definition

Retrieves the handle of the window that has matching caption/class text through a BFS (Breadth-First Search) of the window handle tree rooted at hWndParent.

public:
 static IntPtr FindWindowByCaptionAndClassText(IntPtr hWndParent, int processId, int threadId, System::String ^ captionText, Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::FindWindowMatchType captionMatchType, System::String ^ classText, Microsoft::Uii::HostedApplicationToolkit::DataDrivenAdapter::FindWindowMatchType classMatchType, int matchCount, bool ignoreProcThread);
public static IntPtr FindWindowByCaptionAndClassText (IntPtr hWndParent, int processId, int threadId, string captionText, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType captionMatchType, string classText, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType classMatchType, int matchCount, bool ignoreProcThread);
static member FindWindowByCaptionAndClassText : nativeint * int * int * string * Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType * string * Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.FindWindowMatchType * int * bool -> nativeint
Public Shared Function FindWindowByCaptionAndClassText (hWndParent As IntPtr, processId As Integer, threadId As Integer, captionText As String, captionMatchType As FindWindowMatchType, classText As String, classMatchType As FindWindowMatchType, 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.

captionText
String

Specifies the caption.

captionMatchType
FindWindowMatchType

Specifies the caption match type.

classText
String

Specifies the class text.

classMatchType
FindWindowMatchType

Specifies the class match type.

matchCount
Int32

Specifies the match count.

ignoreProcThread
Boolean

True to ignore processor thread, otherwise false.

Returns

IntPtr

nativeint

Applies to