WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Window Manipulation

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

WinItemize Return Order

 Keywords: WinItemize WinItemizeEx Return Order ZOrder List Itemize Enum Enumerate EnumWindows

Question:

If I ask WinItemize or WinItemizeEx for a list of windows, can I deduce anything from the order returned? It would be useful if I knew that the first (or last) item was the most recently active window with that title.

Answer:

Many suggest that it enumerates the windows in top-down Z-order. Unfortunately, there are no guarantees as to the order returned.

Check out this interesting thread about window enumeration results: http://stackoverflow.com/questions/295996/is-the-order-in-which-handles-are-returned-by-enumwindows-meaningful


Article ID:   W18461
Filename:   WinItemize Return Order.txt
File Created: 2010:04:12:11:47:22
Last Updated: 2010:04:12:11:47:22