| | |
| | | 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); |
| | | } |
| | | } |
| | | //排序 |