Results 1 to 4 of 4

Thread: enumerating windows (hard)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    *.*
    Posts
    85

    enumerating windows (hard)

    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
    Everytime

    "I'm not normally a religious man, but if you're up there, save me, Superman!" Homer Simpson

    Visit my site

  2. #2
    Megatron
    Guest
    Use the IsWindowVisible function to determine if it's visible or not.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    *.*
    Posts
    85
    quality. Thanks megatron works well - dunno how I missed it

    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

    "I'm not normally a religious man, but if you're up there, save me, Superman!" Homer Simpson

    Visit my site

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    *.*
    Posts
    85
    Good tip - I'll do that. Thanks a lot
    Everytime

    "I'm not normally a religious man, but if you're up there, save me, Superman!" Homer Simpson

    Visit my site

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width