|
-
Sep 20th, 2001, 05:35 PM
#1
Thread Starter
Fanatic Member
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
-
Sep 24th, 2001, 03:59 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|