admin
2023-01-02 954ead41d9391bca28a3cc4f9592f73f25b3bbc8
ConsoleApplication/CaptureUtil.cpp
@@ -56,26 +56,11 @@
         tempL2.push_back(frameInfo);
      }
      else {
         //查找第一个子元素
          HWND temp =  FindWindowEx(frameInfo.frame, NULL,NULL, NULL);
         RECT tempRect;
         GetWindowRect(temp, &tempRect);
      
         while (!IsWindowVisible(temp) || tempRect.right- tempRect.left<100) {
            temp= FindWindowEx(frameInfo.frame, temp, NULL, NULL);
            GetWindowRect(temp, &tempRect);
         if (frameInfo.position.bottom - frameInfo.position.top < 100 && frameInfo.position.bottom - frameInfo.position.top >40)
         {
            tempTrade.push_back(frameInfo);
         }
         HWND tempc = FindWindowEx(temp, NULL, NULL, NULL);
         tempc = FindWindowEx(temp, tempc, NULL, NULL);
         tempc = FindWindowEx(tempc, NULL, TEXT("SysListView32"), NULL);
         GetWindowRect(tempc, &tempRect);
         FrameInfo tempFrame = FrameInfo();
         tempFrame.frame = tempc;
         tempFrame.position = tempRect;
         tempTrade.push_back(tempFrame);
      }
   }
   //排序