Results 1 to 2 of 2

Thread: Getting Parent & Child Window

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Getting Parent & Child Window

    ok, I had a similar previous post, but this is a little more specific. I'm wanting to be able to drag a file that is in my listview box in my program to the winamp playlist window list. Soooo, could someone at least tell me if I'm on the right track. In order to do this, don't I need to use the GetParent API function to get the winamp parent window, and then use Something like
    Findchildbyclass% to find the Playlist window, since it is a child of the main winamp window. How do I go about finding the winamp window? Will it have a label or something. Any help is greatly appreciated. Thanks

    - Jeremy

  2. #2
    AutoBot
    Guest

    Hope this helps

    'in a form

    Private Sub Form_Load()

    Dim winampvx As Long
    winampvx = FindWindow("winamp v1.x", vbNullString)

    If winampvx = False Then MsgBox "WinAmp Isn't Running"

    End Sub

    'in a module

    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

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