private IntPtr FindChildWindow(IntPtr parent, string winClass)
        {
            return(EnumChildWindowByName(parent, delegate(IntPtr hwnd, IntPtr lparam)
            {
                StringBuilder lText = new StringBuilder(255);
                StringBuilder ll = new StringBuilder(255);
                Win32.GetClassName(hwnd, lText, 255);
                Win32.Rect rt = new Win32.Rect();
                Win32.GetWindowRect(hwnd, ref rt);
                if (lText.ToString() == "TPanel")
                {
                    Console.WriteLine(rt.Left + "," + rt.Top + "," + rt.Right + "," + rt.Bottom);
//                     if ((rt.Left == 1 && rt.Top == 129 && rt.Right == 30 && rt.Bottom == 791)
//                         || (rt.Left == 65 && rt.Top == 135 && rt.Right == 94 && rt.Bottom == 815))
                    if (((rt.Right - rt.Left) == 29) && ((rt.Bottom - rt.Top) == 662))
                    {
                        return true;
                    }
                    else
                    {
                        return false;
                    }
                }
                return false;
            }));
        }
 private IntPtr FindChildWindow(IntPtr parent,string winClass)
 {
     return EnumChildWindowByName(parent, delegate(IntPtr hwnd, IntPtr lparam)
     {
         StringBuilder lText = new StringBuilder(255);
         StringBuilder ll = new StringBuilder(255);
         Win32.GetClassName(hwnd, lText, 255);
         Win32.Rect rt = new Win32.Rect();
         Win32.GetWindowRect(hwnd, ref rt);
         if (lText.ToString() == "TPanel")
         {
             Console.WriteLine(rt.Left + "," + rt.Top + "," + rt.Right + "," + rt.Bottom);
     //                     if ((rt.Left == 1 && rt.Top == 129 && rt.Right == 30 && rt.Bottom == 791)
     //                         || (rt.Left == 65 && rt.Top == 135 && rt.Right == 94 && rt.Bottom == 815))
             if (((rt.Right - rt.Left) == 29) && ((rt.Bottom - rt.Top) == 662))
             {
                 return true;
             }
             else
             {
                 return false;
             }
         }
         return false;
     });
 }