| | |
| | | return 0; |
| | | } |
| | | |
| | | HWND THSActionUtil::getTradeSimpleDelegateWindow() |
| | | { |
| | | list<HWND> wlist = Win32Util::searchWindow("同花顺远航版"); |
| | | list<HWND>::iterator ele; |
| | | for (ele = wlist.begin(); ele != wlist.end(); ele++) { |
| | | HWND hwnd = *ele; |
| | | hwnd = FindWindowExA(hwnd, NULL, NULL, NULL); |
| | | string name = Win32Util::getWindowName(hwnd); |
| | | if (name.find("网上股票交易系统") != string::npos) { |
| | | return hwnd; |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | HWND THSActionUtil::getTradeSuccessWindow() { |
| | | list<HWND> wlist = Win32Util::searchWindow("网上股票交易系统"); |
| | |
| | | |
| | | void THSActionUtil::openSecondScreen() { |
| | | |
| | | HWND second = getSecondWindow(); |
| | | if (second > 0) { |
| | | Win32Util::showWindow(second); |
| | | return; |
| | | } |
| | | |
| | | list<HWND> wlist = Win32Util::searchWindow("同花顺("); |
| | | |
| | | bool open = false; |
| | | HWND mainPage = 0; |
| | | HWND mainPage = getMainWin(); |
| | | |
| | | list<HWND>::iterator ele; |
| | | for (ele = wlist.begin();ele != wlist.end();ele++) { |