Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A simple way to count how many windows are present on the desktop

0 views
Skip to first unread message

Shimon Crown

unread,
Feb 24, 1998, 3:00:00 AM2/24/98
to

I am writing a application based on Windows NT and because of the life
critical nature of the application there is a requirement that no extraneous
windows suddenly appear while the application is running. I could check for
this by call EnumWindowProc etc. and enumerating all the windows and
checking the handles etc. However this would be time consumming both to
write (rather boring in fact) and also in terms of CPU. What I would really
like is an API function that would just give me the count of windows so that
I would only have to save this number after the application starts and then
just check it periodically. Even better would be a system hook that tells me
if a new window has appeared.

Any ideas out there.

Thanks,

Shimon

Tony Lee - Author of Visual Source Code Explorer

unread,
Mar 1, 1998, 3:00:00 AM3/1/98
to

An easier way is to make this windows TOPMOST on the Z order.


-Tony Lee : Author of Visual Source Code Explorer
check the FAQ on free jpeg/zip/unzip source code on:
http://www.vsce.com

-Tony Lee : Author of Visual Source Code Explorer
check the FAQ on free jpeg/zip/unzip source code on:
http://www.vsce.com

0 new messages