公告板
版本库
filestore
活动
搜索
登录
main
/
gp-server
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
委托列表输出量比/动态L后撤单比例修改/最大单价买到250/参考量不取最近5个交易日最大/下午1点过后不自动加想
Administrator
2025-08-28
e155f71d1fda90ecf5ffc5bc9b4baeb06579ddbe
[gp-server.git]
/
utils
/
win32_util.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import win32gui
# 获取顶部窗口句柄
def get_top_window(hwnd):
child = hwnd
count = 50
while True and count >= 0:
count -= 1
pa = win32gui.GetParent(child)
if pa <= 0:
return child
child = pa