
如何遍历windows所有已打开的窗口
1个回答
展开全部
Window ls_window[]
integer i = 1,j = 1
ls_window[i] = this.GetFirstSheet()
do while IsValid(ls_window[i])
ls_window[i+1] = this.GetNextSheet(ls_window[i])
i++
loop
if i >= 1 then
for j = 1 to i - 1 step 1
messagebox("",ls_window[j].title)
next
end if
如果是要mdi打开的窗口,这个可以了,要windows的要API了
integer i = 1,j = 1
ls_window[i] = this.GetFirstSheet()
do while IsValid(ls_window[i])
ls_window[i+1] = this.GetNextSheet(ls_window[i])
i++
loop
if i >= 1 then
for j = 1 to i - 1 step 1
messagebox("",ls_window[j].title)
next
end if
如果是要mdi打开的窗口,这个可以了,要windows的要API了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |