12-16-2015, 12:55 PM
I needed a quick way to get all totalcommander windows in an array with the topmost window beeing the first one in the array.
I used this example code:
Macro all_tcmd_and_topmost
It seems to work.
My question:
Can I assume that the code above indeed processes the windows in stack order?
Top-most window being the first one in the array?
I read this helpfile page: IDP_WIN.html
It states: win returns top-level window handle. If window not found, returns 0.
But according to the helpfile 'top-level' means:
A top-level window is a window that is not a part of other window.
I used this example code:
Macro all_tcmd_and_topmost
ARRAY(int) a; int i; str sc sn
win("" "TTOTAL_CMD" "" 0 0 0 a)
for(i 0 a.len)
,sc.getwinclass(a[i])
,sn.getwintext(a[i])
,out "%i '%s' '%s'" a[i] sc sn
It seems to work.
My question:
Can I assume that the code above indeed processes the windows in stack order?
Top-most window being the first one in the array?
I read this helpfile page: IDP_WIN.html
It states: win returns top-level window handle. If window not found, returns 0.
But according to the helpfile 'top-level' means:
A top-level window is a window that is not a part of other window.