|
'This program needs a form, a MDIForm, named MDIForm1.
Private Declare Function IsChild Lib "user32" (ByVal hWndParent As Long, ByVal hwnd As Long) As Long
Private Sub Form_Load()
'KPD-Team 1998
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
'Is this form a child?
If IsChild(MDIForm1.hwnd, Me.hwnd) = 1 Then
MsgBox "This form is a child", vbInformation + vbOKOnly, App.Title
Else
MsgBox "This form is not a child", vbInformation + vbOKOnly, App.Title
End If
End Sub
|
|