PDA

Click to See Complete Forum and Search --> : enumerating windows (hard)


Everytime
Nov 12th, 2001, 02:10 PM
Is there a way to get all the windows that are useful/visible to the user i.e. ones that are on the taskbar?

I am able to go through all the windoes using EnumWindowsProc
then I am using the following API calls to indicate (so I can then remove) windows not normally visible to the user...

GetWindowRect (to check if the window has size)
IsWindow (to check if is a window)

this still leaves some windows that I would like to have removed e.g.
Window # 85 : Tsp3216LWindow
Width = 112
Height = 27

How do I identify those windows

thanks for any help

Megatron
Nov 12th, 2001, 02:33 PM
Use the IsWindowVisible function to determine if it's visible or not.

Everytime
Nov 12th, 2001, 03:12 PM
quality. Thanks megatron works well - dunno how I missed it :D

It still brings back Program Manager as a window though
(I'm on win98). is this the same in all window OS - can I safely ignore it as being a window the user should be intereted in?

Everytime
Nov 13th, 2001, 04:05 AM
Good tip - I'll do that. Thanks a lot ;)