|
Hey Ya'll got another question. I'm gonna use the API stuff for this also, and this is what I have so far. IE would be the parent window, right. then the Downlaod Window asking whther I save or Open it would be the Child Window, correct. Well Thats what I dont know how to do. I have this
This is in the Module:
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Function Find_DownloadWindow() As Long
Find_DownloadWindow = FindWindow("#32700(Dialog)", vbNullString)
End Function
and this is in Form_Load:
Private Sub Form_Load()
Dim lIEFrame As Long
If lIEFrame = FindWindow("#32770(Dialog)", vbNullString) Then
Form2.Show
End If
End Sub
Now hwnd is used for Parent Window right, so if that is used for parent windows what used to find out if their is a child window present in the Parent Window?
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain
Destruction leads to a very rough road, but it also breeds creation.
|