Results 1 to 2 of 2

Thread: Enumerating Windows

  1. #1

    Thread Starter
    Addicted Member Cbomb's Avatar
    Join Date
    Jul 1999
    Posts
    153

    Question

    I want to be able to return all of the windows that have a visible GUI (basically all of the windows shown in the task bar would be sufficient.) I have tried the EnumWindows API but it returns WAY more than just the visible windows. Does anyone know of a way of doing this?

    Thanks in advance.
    Cbomb
    Techie

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    Use the IsWindowVisible API:
    Code:
    Public Declare Function IsWindowVisible Lib "user32" Alias "IsWindowVisible" (ByVal hwnd As Long) As Long
    Whenever you want to use it, use:

    Code:
    ReturnVal=IsWindowVisible(hwnd)
    if ReturnVal=0 Then Exit Sub 'If not visible then exit the sub.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

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