private IntPtr GetWindowChildBFSByIndex(IntPtr window, int index)
{
IntPtr child = win32API.FindWindowEx(window, IntPtr.Zero, null, null);
for (int i = 0; i < index; i++)
{
child = win32API.FindWindowEx(window, child, null, null);
if (child == IntPtr.Zero)
{
return child;
}
}
return child;
}