10-24-2006, 07:43 PM
A window handle can be any number. I don't know when the same handle value can be reused after the window is destroyed. I never had such problems, so I think not soon.
You can periodically, eg every 60 s, call IsWindow on every handle, and remove invalid handles (if IsWindow returns 0) from the array.
You can periodically, eg every 60 s, call IsWindow on every handle, and remove invalid handles (if IsWindow returns 0) from the array.
