Is a control tree cached after the first call to FindWindowEx/EnumChildWindows?

Posted by Ion Todirel on Stack Overflow See other posts from Stack Overflow or by Ion Todirel
Published on 2010-04-04T07:17:23Z Indexed on 2010/04/04 7:23 UTC
Read the original article Hit count: 296

Filed under:
|
|
|
|

I noticed that if you call FindWindowEx or EnumChildWindows against a hWnd that belongs to a window that's not in the foreground, i.e. minimized, then they don't report any children. On the other hand if I first call SetForegroundWindow against the window I'm querying, and after that FindWindowEx or EnumChildWindows, they report all the children. Next calls report all the children even if the window I'm interested in is not in foreground. It's almost it does some sort of caching after the first call?

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows