CURELab.SignLanguage.HandDetector.KinectStudioController.GetWindowChildBFSByIndex C# (CSharp) Method

GetWindowChildBFSByIndex() private method

private GetWindowChildBFSByIndex ( IntPtr window, int index ) : IntPtr
window System.IntPtr
index int
return System.IntPtr
        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;
        }