getting open window count
Posted on 2002-04-08
I have an MDI application, and I need to count all currently open views. One way to do it would be using GetTopWindow() and GetNextWindow() functions, which would permit me to start from the topmost window and count all of them in z order, step by step. But isn't there a shorter way to get this count, maybe, from a single function call ?
I even need not the exact count, but rather a close upper bound estimate: how many views do I have currently open at most.